/**
 * Multilingual Currency Calculator Styles for RapidAPI Currency Converter
 */

.racc-multilingual-currency-calculator {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Language Navigation */
.racc-language-nav {
    margin-bottom: 30px;
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.racc-language-nav h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.language-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    border: 2px solid #ddd;
    border-radius: 25px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lang-link:hover {
    border-color: #007cba;
    background: #f0f6ff;
    transform: translateY(-2px);
}

.lang-link.active {
    border-color: #007cba;
    background: #007cba;
    color: white;
}

.lang-link .flag {
    font-size: 16px;
}

.lang-link .name {
    font-weight: 500;
}

/* Language Selector */
.racc-language-selector {
    margin-bottom: 30px;
    text-align: center;
}

.racc-language-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.language-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lang-btn:hover {
    border-color: #007cba;
    background: #f0f6ff;
}

.lang-btn.active {
    border-color: #007cba;
    background: #007cba;
    color: white;
}

.lang-btn .flag {
    font-size: 16px;
}

.lang-btn .name {
    font-weight: 500;
}

/* Calculator Section */
.racc-calculator-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.racc-calculator-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.racc-input-group {
    margin-bottom: 20px;
}

.racc-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.racc-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.racc-input:focus {
    outline: none;
    border-color: #007cba;
}

.racc-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.racc-select:focus {
    outline: none;
    border-color: #007cba;
}

.racc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.racc-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.racc-btn-primary {
    background: #007cba;
    color: white;
}

.racc-btn-primary:hover {
    background: #005a87;
}

/* Result Section */
.racc-result {
    background: #e8f5e8;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.racc-result h4 {
    margin: 0 0 15px 0;
    color: #2e7d32;
    font-size: 18px;
}

.result-amount {
    font-size: 32px;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 10px;
}

.result-rate {
    font-size: 14px;
    color: #555;
}

.result-rate #rate-value {
    font-weight: 600;
    color: #2e7d32;
}

/* Exchange Rates Section */
.racc-rates-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.racc-rates-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    text-align: center;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.rates-table th,
.rates-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.rates-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.rates-table tr:hover {
    background: #f9f9f9;
}

.last-updated {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .racc-multilingual-currency-calculator {
        margin: 10px;
        padding: 15px;
    }
    
    .racc-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .language-links {
        justify-content: center;
    }
    
    .lang-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .racc-calculator-section,
    .racc-rates-section {
        padding: 20px;
    }
    
    .result-amount {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .racc-multilingual-currency-calculator {
        margin: 5px;
        padding: 10px;
    }
    
    .language-links {
        gap: 5px;
    }
    
    .lang-link {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .lang-link .name {
        display: none;
    }
    
    .racc-calculator-section,
    .racc-rates-section {
        padding: 15px;
    }
    
    .result-amount {
        font-size: 20px;
    }
}
