/* Homepage Specific Styles - G18 Gaming Website */

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(155, 44, 136, 0.6)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #9B2C88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: heroTitleGlow 3s ease-in-out infinite alternate;
}

@keyframes heroTitleGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(155, 44, 136, 0.5));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(155, 44, 136, 0.8));
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #e0e0e0;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-cta {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(155, 44, 136, 0.4);
    color: white;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hero-cta:hover::before {
    left: 100%;
}

/* Hero Particles Animation */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* Section Titles */
.section-title-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-heading);
    margin: 4rem 0 2rem 0;
    text-align: center;
    position: relative;
}

.section-title-tag::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border-radius: 2px;
}

/* Game Card Styles */
.game-card-text {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(155, 44, 136, 0.1);
}

.game-card-text:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(155, 44, 136, 0.3);
    color: inherit;
    border-color: rgba(155, 44, 136, 0.4);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.9);
}

.game-card-text:hover .card-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.card-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tag-badge.horror {
    background: rgba(220, 53, 69, 0.8);
    color: white;
}

.tag-badge.action {
    background: rgba(255, 193, 7, 0.8);
    color: #000;
}

.tag-badge.adventure {
    background: rgba(40, 167, 69, 0.8);
    color: white;
}

.tag-badge.vietsub {
    background: rgba(155, 44, 136, 0.8);
    color: white;
}

.tag-badge.pc {
    background: rgba(23, 162, 184, 0.8);
    color: white;
}

.tag-badge.sci-fi {
    background: rgba(111, 66, 193, 0.8);
    color: white;
}

.tag-badge.psychological {
    background: rgba(108, 117, 125, 0.8);
    color: white;
}

.tag-badge.hack-and-slash {
    background: rgba(220, 53, 69, 0.8);
    color: white;
}

.game-card-text:hover .tag-badge {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
    background: var(--bg-card);
}

.card-developer {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 15px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

.card-date i {
    color: var(--accent-primary);
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #666;
}

.empty-state i {
    opacity: 0.5;
}

.empty-state h5 {
    margin: 20px 0 10px;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Container and Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Scroll-based animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.games-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--accent-primary);
}

.games-loading i {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.games-error {
    text-align: center;
    padding: 60px 20px;
    color: #f39c12;
}

.games-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.games-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }

    .section-title-tag {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 100px 0 50px;
    }

    .hero-title {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .section-title-tag {
        font-size: 2rem;
        margin: 3rem 0 1.5rem 0;
    }

    .section-padding {
        padding: 60px 0;
    }

    .card-image {
        height: 200px;
    }

    .card-body {
        padding: 20px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .game-card-text:hover {
        transform: translateY(-10px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title-tag {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }

    .card-tags {
        top: 10px;
        left: 10px;
        gap: 5px;
    }

    .tag-badge {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}