/**
 * New Hero Rates Card Design
 * Modern, clean and highly visible design for currency rates
 */

/* Main Rates Card */
.rates-card-new {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.rates-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

/* Card Header */
.card-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.card-title-new {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Live Indicator */
.live-indicator-new {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.live-pulse {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: livePulseNew 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes livePulseNew {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.live-text-new {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Rates Grid */
.rates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* Individual Rate Card */
.rate-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.rate-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Rate Card Header */
.rate-card-header {
    margin-bottom: 1rem;
}

.currency-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.currency-flag-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.currency-flag-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.currency-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.currency-code-large {
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.currency-name-small {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Rate Card Body */
.rate-card-body {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Rate Boxes */
.rate-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.rate-box-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.rate-box-value {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.rate-box-azn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Rate Divider */
.rate-divider {
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* Hover Effects */
.rate-buy-box:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.rate-sell-box:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rates-card-new {
        padding: 1.5rem;
    }
    
    .card-title-new {
        font-size: 1.2rem;
    }
    
    .rates-grid {
        gap: 1rem;
    }
    
    .rate-card {
        padding: 1rem;
    }
    
    .currency-flag-circle {
        width: 35px;
        height: 35px;
    }
    
    .currency-code-large {
        font-size: 1.1rem;
    }
    
    .rate-box-value {
        font-size: 1.3rem;
    }
    
    .rate-card-body {
        padding: 0.85rem;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .rates-card-new {
        padding: 1.25rem;
    }
    
    .card-header-new {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .card-title-new {
        font-size: 1.1rem;
    }
    
    .live-indicator-new {
        padding: 0.4rem 0.8rem;
    }
    
    .live-text-new {
        font-size: 0.75rem;
    }
    
    .rate-card {
        padding: 0.85rem;
    }
    
    .currency-flag-circle {
        width: 32px;
        height: 32px;
    }
    
    .currency-code-large {
        font-size: 1rem;
    }
    
    .currency-name-small {
        font-size: 0.7rem;
    }
    
    .rate-card-body {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .rate-box-label {
        font-size: 0.7rem;
    }
    
    .rate-box-value {
        font-size: 1.2rem;
    }
    
    .rate-box-azn {
        font-size: 0.65rem;
    }
}

/* Animation on Load */
.rate-card {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.rate-card:nth-child(1) { animation-delay: 0.1s; }
.rate-card:nth-child(2) { animation-delay: 0.2s; }
.rate-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
