/**
 * Hero Section Styles
 * Responsive and animated hero section for EStore
 */

/* Hero Section Main Styles */
.hero-section {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    padding: 2rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

/* Hero Content */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

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

/* Hero Statistics */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    animation: slideInUp 1s ease-out 1s both;
}

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

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 120px;
}

.hero-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-stat-icon {
    font-size: 1.3rem;
    color: #6e3575;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-stat-content {
    flex: 1;
    min-width: 0;
}

.hero-stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1.2;
}

/* Currency Symbol Styling using ::after */
.currency-value::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    background-image: url('/assets/Saudi_Riyal_Symbol-2.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /*filter: brightness(0) invert(1);  Make it white to match the text */
    opacity: 0.9;
}

/* Percentage Symbol Styling using ::after */
.percentage-value::after {
    content: '%';
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    font-size: 0.9em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Plus Symbol Styling using ::after */
.plus-value::after {
    content: '+';
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    font-size: 0.9em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.loading-dots {
    color: rgba(255, 255, 255, 0.6);
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

/* Create Account Card */
.create-account-card {
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.create-account-card:hover {
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.7rem;
    }
}

@media (max-width: 992px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .hero-stat-item {
        padding: 0.6rem 0.7rem;
        min-width: 100px;
    }
    
    .hero-stat-icon {
        font-size: 1.1rem;
    }
    
    .hero-stat-number {
        font-size: 1rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .hero-stat-item {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        margin: 0 auto;
    }
    
    .create-account-card {
        padding: 1.5rem !important;
    }
}
