/* Game Portfolio Site Styles */

:root {
    --primary: #8B4513;
    --primary-dark: #704214;
    --secondary: #D4AF37;
    --bg: #F5F5DC;
    --bg-card: #FFFFFF;
    --text: #3a3028;
    --text-light: #666;
    --border: #D2B48C;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Header / Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    font-weight: normal;
}

.hero-content .tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.95;
    font-style: italic;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 15px;
}

/* Game Grid */
.games-section {
    margin-bottom: 60px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* Game Cards */
.game-card {
    background: var(--bg-card);
    border: 3px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:not(.coming-soon):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(139, 69, 19, 0.2);
}

.game-thumbnail {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-thumbnail.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ddd, #eee);
}

.placeholder-text {
    font-size: 5rem;
    color: #999;
    font-weight: bold;
}

.game-info {
    padding: 25px;
}

.game-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.game-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
    min-height: 60px;
}

/* Tags */
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
}

.tag-inactive {
    background: #999;
}

/* Play Button */
.btn-play {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

.btn-play:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.btn-play:active {
    transform: scale(0.98);
}

/* Coming Soon State */
.coming-soon {
    opacity: 0.7;
}

.coming-soon .btn-play {
    background: #999;
    cursor: not-allowed;
    pointer-events: none;
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    color: var(--secondary);
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }

    .container {
        padding: 40px 15px;
    }

    .game-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-nav a {
        display: block;
        margin: 10px 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .game-card,
    .btn-play {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .btn-play,
    .site-footer {
        display: none;
    }
}
