/*
Theme Name: Arcade
Description: A minimal dark theme for browser-based games
Version: 1.2
Author: Matt
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide WordPress Admin Bar */
#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Roboto", Roboto, "Segoe UI", "Fira Sans", "Droid Sans","Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    display: grid;
    grid-template-rows: 10dvh 85dvh 5dvh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "filson-soft", sans-serif;
    color: #ffffff;
    margin-bottom: 1rem;
}

.lead, .big {
    font-family: "filson-soft", sans-serif;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
}

h2 {
    font-size: 2rem;
    font-weight: 400;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: #cccccc;
}

a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6bb6ff;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background-color: #2a2a2a;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    grid-row: 1;
    display: flex;
    align-items: center;
    height: 10dvh;
    overflow: hidden;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-branding {
    display: flex;
    align-items: center;
}

.logo {
    display: inline-block;
    text-decoration: none;
}

.logo svg {
    height: 60px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo:hover svg {
    opacity: 0.8;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 300;
    color: #ffffff;
}

/* Navigation */
.main-navigation {
    margin-top: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #cccccc;
    font-weight: 400;
    text-decoration: none;
}

.main-navigation a:hover {
    color: #ffffff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2a2a2a;
    border-top: 1px solid #333;
    padding: 1rem 0;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem;
}

.mobile-nav.active {
    display: block;
}

/* Main Content */
.site-main {
    padding: 0;
    grid-row: 2;
    height: 85dvh;
    overflow: hidden;
}

/* Footer */
.site-footer {
    background-color: #2a2a2a;
    padding: 0.5rem 0;
    border-top: 1px solid #333;
    text-align: center;
    color: #888;
    grid-row: 3;
    height: 5dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4a9eff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: #3a8eef;
    color: #ffffff;
}

.btn-secondary {
    background-color: #555;
}

.btn-secondary:hover {
    background-color: #666;
}

/* Homepage Styles */
.games-list {
    max-width: 1000px;
    margin: 0 auto;
}

.game-list-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: #2a2a2a;
    border-radius: 12px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-list-item .game-thumbnail-container {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.game-list-item .game-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.game-list-item .game-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 2rem;
    border-radius: 8px;
}

.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-list-item .game-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.game-list-item .game-tagline {
    font-size: 1rem;
    color: #cccccc;
    margin: 0;
    line-height: 1.4;
}

.game-list-item .game-actions {
    margin-top: 0.5rem;
}

.btn-play {
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.btn-play:hover {
    background-color: #f0f0f0;
    color: #1a1a1a;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Game Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-thumbnail-placeholder {
    width: 100%;
    height: 200px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 3rem;
}

.game-content {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-description {
    color: #cccccc;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Mobile Navigation */
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .site-header {
        position: relative;
    }
}

/* Game Container */
.game-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.game-wrapper {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.game-info {
    padding: 2rem;
    text-align: center;
}

.game-info h1 {
    margin-bottom: 1rem;
}

.game-content {
    max-width: 800px;
    margin: 0 auto;
}

.no-game {
    padding: 2rem;
    text-align: center;
}

/* Game-specific overrides */
.game-container * {
    box-sizing: border-box;
}

/* Ensure games can use full height */
.game-container .game-container {
    height: 100% !important;
    min-height: 100% !important;
}

/* Game Details Page */
.game-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.game-thumbnail-container {
    margin-bottom: 2rem;
    text-align: center;
}

.game-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.game-detail-content {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.game-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.game-tagline {
    font-size: 1.3rem;
    color: #4a9eff;
    margin-bottom: 2rem;
    line-height: 1.4;
    font-weight: 500;
    font-style: italic;
}

.game-overview {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.game-content {
    margin-bottom: 2rem;
    color: #cccccc;
}

.game-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #1a1a1a;
    border-radius: 4px;
}

.game-difficulty,
.game-category {
    color: #cccccc;
}

.game-instructions {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #1a1a1a;
    border-radius: 4px;
}

.game-instructions h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.instructions-content {
    color: #cccccc;
    line-height: 1.6;
}

.game-gallery {
    margin-bottom: 2rem;
}

.game-gallery h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
}

.game-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #4a9eff;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #3a8eef;
    color: #ffffff;
}

.btn-secondary {
    background-color: #555;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #666;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .game-detail {
        padding: 1rem 0;
    }
    
    .game-detail-content {
        padding: 1.5rem;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .game-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        text-align: center;
    }
    
    /* Homepage responsive */
    .game-list-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .game-list-item .game-thumbnail-container {
        width: 100px;
        height: 100px;
    }
    
    .game-list-item .game-title {
        font-size: 1.5rem;
    }
    
    .game-list-item .game-tagline {
        font-size: 0.9rem;
    }
}
