/* Game Portfolio - Site Styles */
/* Premium Cacao Theme v2 - Rich Chocolate with Copper Gradients */

/* Base */
body {
    margin: 0;
    padding: 0;
}

/* ========================================
   Hero Section
   ======================================== */
.game-hero {
    margin-top: 72px;
    background: var(--gradient-hero, linear-gradient(135deg, #1a1210 0%, #2d1f18 50%, #1a1210 100%));
    padding: 120px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Cacao pattern tile background */
.game-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--cacao-pattern);
    background-repeat: repeat;
    background-size: 60px 60px;
    opacity: 1;
    pointer-events: none;
}

/* Copper glow overlay */
.game-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(205, 139, 98, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.game-hero .hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.game-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease;
    background: var(--gradient-accent, linear-gradient(135deg, #cd8b62 0%, #d4a574 50%, #e4a980 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary, #c4b5a5);
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-accent, linear-gradient(135deg, #cd8b62 0%, #d4a574 100%));
    color: var(--bg-deep, #0d0b0a);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow, 0 8px 40px rgba(205, 139, 98, 0.3));
}

/* ========================================
   Games Section
   ======================================== */
.games-section {
    padding: 80px 20px;
    background: var(--bg-section, #141110);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--cream, #f5efe8);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title p {
    color: var(--text-muted, #8a7d72);
    font-size: 1rem;
}

/* Game Cards Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Game Card */
.game-card {
    background: var(--gradient-card, linear-gradient(145deg, rgba(205, 139, 98, 0.08) 0%, rgba(212, 165, 116, 0.03) 100%));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border, #3a2e28);
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent, linear-gradient(135deg, #cd8b62 0%, #d4a574 50%, #a66d48 100%));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.game-card:hover {
    border-color: var(--border-accent, rgba(205, 139, 98, 0.4));
    box-shadow: var(--shadow-glow, 0 8px 40px rgba(205, 139, 98, 0.2));
    transform: translateY(-4px);
}

.game-card:hover::before {
    transform: scaleX(1);
}

/* Game Thumbnail */
.game-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.05);
}

/* Placeholder thumbnail (CSS gradient fallback) */
.game-thumbnail .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.05em;
}

.placeholder-1 { background: linear-gradient(135deg, #2d1f18 0%, #4a2f20 50%, #2d1f18 100%); }
.placeholder-2 { background: linear-gradient(135deg, #1a2030 0%, #2a3545 50%, #1a2030 100%); }
.placeholder-3 { background: linear-gradient(135deg, #1a2a1a 0%, #2a4a2a 50%, #1a2a1a 100%); }
.placeholder-4 { background: linear-gradient(135deg, #2a1a2a 0%, #3a2a3a 50%, #2a1a2a 100%); }
.placeholder-5 { background: linear-gradient(135deg, #2a2a1a 0%, #3a3a2a 50%, #2a2a1a 100%); }
.placeholder-6 { background: linear-gradient(135deg, #1a2a2a 0%, #2a3a3a 50%, #1a2a2a 100%); }

/* Game Info */
.game-info {
    padding: 1.25rem 1.5rem 1.5rem;
}

.game-info h3 {
    font-size: 1.15rem;
    color: var(--cream, #f5efe8);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.game-genre {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-elevated, #221c18);
    border: 1px solid var(--border, #3a2e28);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent, #cd8b62);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.game-desc {
    font-size: 0.9rem;
    color: var(--text-secondary, #c4b5a5);
    line-height: 1.6;
    margin: 0 0 1rem;
}

/* Platform Badges */
.platform-badges {
    display: flex;
    gap: 0.5rem;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-elevated, #221c18);
    border: 1px solid var(--border, #3a2e28);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary, #c4b5a5);
    text-decoration: none;
    transition: all 0.2s ease;
}

.platform-badge:hover {
    border-color: var(--border-accent, rgba(205, 139, 98, 0.4));
    color: var(--cream, #f5efe8);
}

.platform-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ========================================
   Back Link
   ======================================== */
.back-to-main {
    text-align: center;
    margin-top: 3.5rem;
}

.back-to-main a {
    color: var(--accent, #cd8b62);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.back-to-main a:hover {
    color: var(--accent-light, #e4a980);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #0f0d0c;
    color: var(--text-secondary, #c4b5a5);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border, #3a2e28);
}

.footer-content {
    margin-bottom: 1.5rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-secondary, #c4b5a5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--cream, #f5efe8);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .game-hero {
        padding: 100px 20px 80px;
    }

    .game-hero h1 {
        font-size: 2rem;
    }

    .game-hero p {
        font-size: 1rem;
    }

    .game-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .games-section {
        padding: 60px 20px;
    }
}

/* ========================================
   Animation
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
