/* Game Preserve Stores - Editorial Magazine Stylesheet */

:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #1a1a24;
    --accent-bg: #252530;
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --accent-yellow: #ffd700;
    --accent-blue: #5a9fff;
    --accent-green: #00d4aa;
    --accent-red: #ff6b6b;
    --border-color: #2a2a35;
    --card-bg: #1e1e28;
    --link-color: #7bb3ff;
    --link-hover: #ffd700;
    --serif-font: 'Georgia', 'Times New Roman', serif;
    --sans-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--serif-font);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header and Navigation */
header {
    background-color: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(26, 26, 36, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: var(--sans-font);
    font-size: 22px;
    font-weight: 600;
    color: var(--accent-yellow);
    text-decoration: none;
    letter-spacing: -0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-family: var(--sans-font);
    transition: color 0.2s ease;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

nav a:hover,
nav a.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-yellow);
}

/* Main Content */
main {
    min-height: calc(100vh - 300px);
    padding: 60px 0;
}

h1 {
    font-size: 48px;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -1px;
}

h2 {
    font-size: 36px;
    margin: 48px 0 24px;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 28px;
    margin: 36px 0 18px;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.4;
}

h4 {
    font-size: 22px;
    margin: 28px 0 14px;
    color: var(--text-primary);
    font-weight: 400;
}

p {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 1.8;
}

a {
    color: var(--link-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-bg) 100%);
    padding: 80px 24px;
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 22px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* Cards and Grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 32px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-yellow);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.card h3 a:hover {
    color: var(--accent-yellow);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

/* Article Styles */
.article-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 12px;
    font-family: var(--sans-font);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 40px 0;
    border: 1px solid var(--border-color);
}

.article-content h2 {
    margin-top: 48px;
}

.article-content h3 {
    margin-top: 36px;
}

/* Lists */
ul, ol {
    margin-left: 32px;
    margin-bottom: 24px;
}

li {
    margin-bottom: 12px;
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 48px 0;
    margin-top: 80px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: var(--sans-font);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Forms */
form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 28px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: var(--sans-font);
    font-size: 15px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--serif-font);
    font-size: 16px;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

button,
.btn {
    background-color: var(--accent-blue);
    color: var(--text-primary);
    padding: 14px 32px;
    border: 1px solid var(--accent-blue);
    font-size: 16px;
    font-family: var(--sans-font);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.btn:hover {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--primary-bg);
}

/* Glossary */
.glossary-term {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.glossary-term:last-child {
    border-bottom: none;
}

.glossary-term h3 {
    color: var(--accent-yellow);
    margin-bottom: 12px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-secondary);
    font-family: var(--sans-font);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--text-primary);
}

.breadcrumbs span {
    margin: 0 12px;
    color: var(--border-color);
}

/* Theme Pages */
.theme-intro {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 800px;
}

.theme-articles {
    margin-top: 48px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 16px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    main {
        padding: 40px 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.highlight {
    background-color: var(--accent-bg);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Boundaries section styling */
.boundaries {
    background-color: var(--accent-bg);
    border-left: 3px solid var(--accent-yellow);
    padding: 24px;
    margin: 40px 0;
    font-size: 16px;
    line-height: 1.7;
}

.boundaries h4 {
    margin-top: 0;
    color: var(--accent-yellow);
}
