/*
Theme Name: Divi Child
Description: Child theme for Divi with Currency Converter
Template: Divi
Version: 1.0.0
Author: Your Name
*/

/* Import parent theme styles */
@import url("../Divi/style.css");

/* Currency Converter Custom Styles */
.currency-converter-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Open Sans', Arial, sans-serif;
}

.currency-converter-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.converter-form {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 25px;
    align-items: end;
    margin-bottom: 30px;
}

.currency-input-group {
    display: flex;
    flex-direction: column;
}

.currency-input-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.currency-input-group input,
.currency-input-group select {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.currency-input-group input:focus,
.currency-input-group select:focus {
    outline: none;
    border-color: #2ea3f2;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.1);
}

.swap-button {
    background: linear-gradient(135deg, #2ea3f2, #1e8bc3);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 163, 242, 0.3);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-button:hover {
    background: linear-gradient(135deg, #1e8bc3, #2ea3f2);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(46, 163, 242, 0.4);
}

.conversion-result {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.main-result {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.exchange-rate {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.loading {
    text-align: center;
    padding: 25px;
    color: #666;
    font-style: italic;
}

.loading::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: '...'; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.error {
    background: #fee;
    color: #c33;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #fcc;
}

#last-updated {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .currency-converter-container {
        margin: 20px 10px;
        padding: 25px;
    }
    
    .converter-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .swap-button {
        justify-self: center;
        margin: 10px 0;
    }
    
    .main-result {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .currency-converter-container {
        padding: 20px;
    }
    
    .currency-converter-container h2 {
        font-size: 24px;
    }
    
    .currency-input-group input,
    .currency-input-group select {
        padding: 12px;
        font-size: 14px;
    }
}

/* Integration with Divi theme colors */
.et_pb_section .currency-converter-container {
    background: inherit;
}

.et_pb_row .currency-converter-container {
    box-shadow: none;
    border: 1px solid #e0e0e0;
}




