/* Currency Converter Specific Styles */

.tool-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Mode Selector */
.mode-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.mode-btn {
    flex: 1;
    max-width: 250px;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 60px;
    background: white;
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dark-mode .mode-btn {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.mode-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.mode-btn i {
    font-size: 1.1rem;
}

.mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Converter Cards */
.converter-card {
    background: white;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
    padding: 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.dark-mode .converter-card {
    background: #1f2937;
    border-color: #374151;
}

.converter-card.advanced {
    border-top: 4px solid #8b5cf6;
}

.card-header {
    margin-bottom: 25px;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.badge.basic {
    background: #3b82f6;
    color: white;
}

.badge.advanced {
    background: #8b5cf6;
    color: white;
}

.card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark-mode .card-header h2 {
    color: #f9fafb;
}

.api-source {
    font-size: 0.85rem;
    color: #6b7280;
}

.dark-mode .api-source {
    color: #9ca3af;
}

/* Input Styles */
.input-row {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
    flex: 1;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-weight: 500;
    font-size: 0.95rem;
}

.dark-mode .input-group label {
    color: #f9fafb;
}

.number-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 60px;
    font-size: 1rem;
    background: white;
    color: #111827;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dark-mode .number-input {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.number-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.currency-row {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.currency-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 60px;
    font-size: 1rem;
    background: white;
    color: #111827;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 45px;
}

.dark-mode .currency-select {
    background-color: #1f2937;
    border-color: #374151;
    color: #f9fafb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.currency-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.currency-select option {
    background: white;
    color: #111827;
    padding: 10px;
}

.dark-mode .currency-select option {
    background: #1f2937;
    color: #f9fafb;
}

.swap-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    background: white;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.dark-mode .swap-btn {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.swap-btn:hover {
    background: #3b82f6;
    color: white;
    transform: rotate(180deg);
}

.convert-btn {
    width: 100%;
    padding: 16px 30px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.convert-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px #3b82f6;
}

/* Result Card */
.result-card {
    margin-top: 25px;
    padding: 25px;
    background: #f9fafb;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #3b82f6;
    animation: fadeIn 0.5s ease;
}

.dark-mode .result-card {
    background: #111827;
}

.conversion-result {
    font-size: 1.8rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.dark-mode .conversion-result {
    color: #f9fafb;
}

.conversion-result .from-amount,
.conversion-result .to-amount {
    padding: 8px 16px;
    background: white;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
}

.dark-mode .conversion-result .from-amount,
.dark-mode .conversion-result .to-amount {
    background: #1f2937;
    border-color: #374151;
}

.conversion-result i {
    color: #3b82f6;
}

.exchange-rate {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.dark-mode .exchange-rate {
    color: #9ca3af;
}

.last-updated {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.feature-card {
    background: #f9fafb;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.dark-mode .feature-card {
    background: #1f2937;
    border-color: #374151;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-icon.basic-icon {
    color: #3b82f6;
}

.feature-icon.advanced-icon {
    color: #8b5cf6;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #111827;
}

.dark-mode .feature-card h4 {
    color: #f9fafb;
}

.feature-card p {
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.feature-card ul li {
    padding: 6px 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.dark-mode .feature-card ul li {
    color: #9ca3af;
}

/* Popular Pairs */
.popular-pairs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.pair-tag {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    font-size: 0.9rem;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-mode .pair-tag {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.pair-tag:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Info Section */
.info-section {
    background: #f9fafb;
    border-radius: 30px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #e5e7eb;
}

.dark-mode .info-section {
    background: #111827;
    border-color: #374151;
}

.info-section h3 {
    font-size: 1.3rem;
    margin: 20px 0 15px;
    color: #111827;
}

.dark-mode .info-section h3 {
    color: #f9fafb;
}

.info-section h3:first-child {
    margin-top: 0;
}

/* Ad Containers */
.ad-container {
    margin: 20px 0;
}

.ad-banner {
    text-align: center;
}

.ad-banner p {
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.ad-placeholder {
    background: #f3f4f6;
    border: 2px dashed #e5e7eb;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #9ca3af;
}

.dark-mode .ad-placeholder {
    background: #1f2937;
    border-color: #374151;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 2rem;
    }
    
    .mode-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .mode-btn {
        max-width: 100%;
    }
    
    .currency-row {
        flex-direction: column;
    }
    
    .swap-btn {
        transform: rotate(90deg);
        margin: 10px auto;
    }
    
    .swap-btn:hover {
        transform: rotate(270deg);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .conversion-result {
        font-size: 1.4rem;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .converter-card {
        padding: 20px;
    }
    
    .number-input,
    .currency-select {
        padding: 14px 16px;
    }
    
    .convert-btn {
        padding: 14px;
    }
}