/**
 * GiftCodeNgon - Hero Section
 *
 * @version 1.0.1
 */

.hero-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    backdrop-filter: blur(10px);
}

.hero-content {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
}

/* Game Icon */
.hero-icon {
    flex-shrink: 0;
}

.hero-icon .game-icon,
.hero-icon img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-xl);
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.game-icon-placeholder {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

/* Stats */
.hero-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.hero-stat i {
    color: var(--color-primary);
    width: 20px;
}

.hero-stat .stat-value {
    font-weight: var(--font-bold);
    color: white;
    font-size: var(--text-lg);
}

.hero-stat .stat-label {
    color: var(--color-text-muted);
}

/* Featured Stats Row (Usage + Reviews) */
.hero-featured-stats {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.hero-featured-stat {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
}

.hero-featured-stat:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.12) 100%);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.hero-featured-stat>i {
    font-size: var(--text-xl);
    color: var(--color-primary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-lg);
}

.hero-featured-stat:nth-child(2)>i {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
}

.featured-stat-content {
    display: flex;
    flex-direction: column;
}

.featured-stat-content .stat-value {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: white;
    line-height: 1.2;
}

.featured-stat-content .stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Code Stats Row */
.hero-stat-row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
}

.hero-stat-item i {
    font-size: var(--text-base);
}

.hero-stat-item .stat-value {
    font-weight: var(--font-bold);
    color: white;
}

.hero-stat-item .stat-label {
    color: var(--color-text-muted);
}

.hero-stat-item.stat-success i {
    color: var(--color-success);
}

.hero-stat-item.stat-expired i {
    color: var(--color-danger);
}

/* Date */
.hero-date {
    margin-top: var(--space-1);
}

.hero-date .stat-value {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

/* Social Share */
.hero-share {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-title {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-muted);
}

.share-buttons {
    display: flex;
    gap: var(--space-2);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-facebook:hover {
    background: #1877f2;
    color: white;
}

.share-twitter:hover {
    background: #000;
    color: white;
}

.share-threads:hover {
    background: #000;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .hero-section {
        padding: var(--space-4);
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-icon .game-icon,
    .hero-icon img,
    .game-icon-placeholder {
        width: 80px;
        height: 80px;
    }

    .hero-stats {
        align-items: center;
    }

    .hero-stat-row {
        justify-content: center;
        flex-wrap: nowrap;
        gap: var(--space-2);
        width: 100%;
    }

    .hero-stat-item {
        flex: 1;
        justify-content: center;
        padding: var(--space-2);
    }
    
    .hero-stat-item i {
        display: none; /* Ẩn icon trên mobile để tiết kiệm diện tích nếu quá chật, hoặc có thể giữ lại tùy thiết kế. Hiện tại chỉ giảm padding/gap. */
    }

    /* Giữ lại icon nếu đủ chỗ, chỉ thu nhỏ flex item */
    .hero-stat-item {
        flex-direction: column;
        gap: 0;
    }
    .hero-stat-item i {
        display: block;
        font-size: var(--text-sm);
        margin-bottom: 2px;
    }
    .hero-stat-item .stat-label {
        font-size: 11px;
    }

    .hero-share {
        flex-direction: column;
        gap: var(--space-2);
    }
}
