/**
 * GameDB - Homepage CSS
 * 
 * Styles specific to homepage only
 * (Header, Footer, Reset are in base.css and layout.css)
 */

/* ==========================================
   Intro Banner
   ========================================== */
.intro-banner {
    border-radius: 24px;
    padding: 28px 32px;
    margin: 24px 0 28px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
}

.intro-copy h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text-primary);
}

.intro-copy p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.intro-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.intro-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(99, 102, 241, 0.15);
    font-weight: 600;
    color: var(--text-primary);
}

.intro-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #fff;
    flex: 0 0 34px;
}

/* ==========================================
   Featured Hero
   ========================================== */
.featured-hero {
    border-radius: 32px;
    padding: 60px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 60px;
    align-items: center;
    max-height: 500px;
    overflow: hidden;
}

.featured-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.featured-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.featured-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.featured-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.featured-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-primary {
    padding: 16px 40px;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
    color: white;
}

.featured-image {
    max-height: 100%;
    aspect-ratio: 3/4;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   Section
   ========================================== */
.section {
    margin-bottom: 80px;
}

/* ==========================================
   Games Grid
   ========================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.game-card {
    border-radius: 24px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.game-image {
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.game-tag {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
}

.game-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.game-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.rating {
    color: var(--accent);
}

/* ==========================================
   Horizontal Scroll (Characters/Events)
   ========================================== */
.scroll-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: visible;
    padding-top: 30px;
    padding-bottom: 20px;
}

.scroll-container::-webkit-scrollbar {
    height: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

.character-card,
.event-card {
    min-width: 200px;
    border-radius: 20px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.character-card:hover,
.event-card:hover {
    transform: translateY(-8px);
}

.character-image {
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.event-image {
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.character-image img,
.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-name,
.event-name {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
}

.character-game,
.event-date {
    font-size: 11px;
    text-align: center;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================
   Stats Banner
   ========================================== */
.stats-banner {
    border-radius: 24px;
    padding: 60px;
    margin-bottom: 80px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   Guides Grid
   ========================================== */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.guide-card {
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    min-height: 180px;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.guide-image {
    position: relative;
    width: 200px;
    flex-shrink: 0;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-type {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.guide-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.guide-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.4;
}

.guide-content p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: auto;
    flex: 1;
}

.guide-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

.guide-author,
.guide-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================
   No Results
   ========================================== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .featured-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
        max-height: none;
    }

    .featured-content h2 {
        font-size: 36px;
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .featured-hero {
        padding: 30px;
    }

    .featured-content h2 {
        font-size: 28px;
    }

    .featured-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .game-card {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stats-banner {
        padding: 40px 20px;
    }

    .stat-item h3 {
        font-size: 32px;
    }

    .guide-card {
        flex-direction: column;
    }

    .guide-image {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}