:root {
    /* Light Theme (Divine) - Default */
    --bg: #f9f9f7;
    --surface: #ffffff;
    --text: #1a1a1a;
    --text-dim: #5c5c5c;
    --primary: #B8860B; /* Darker Gold for visibility */
    --primary-glow: rgba(184, 134, 11, 0.2);
    --secondary: #1A237E;
    --white: #FFFFFF;
    --accent-gradient: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #B8860B 100%);
    --nav-bg: rgba(249, 249, 247, 0.95);
    --border: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg: #0f0f12;
    --surface: #1e1e24;
    --text: #e0e0e0;
    --text-dim: #a0a0a0;
    --primary: #D4AF37;
    --primary-glow: rgba(212, 175, 55, 0.3);
    --secondary: #1A237E;
    --accent-gradient: linear-gradient(135deg, #D4AF37 0%, #F1D592 50%, #D4AF37 100%);
    --nav-bg: rgba(15, 15, 18, 0.95);
    --border: rgba(212, 175, 55, 0.2);
}

body {
    font-family: 'Lora', serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: 2px;
}

.links {
    display: flex;
    align-items: center;
}

.links a {
    color: var(--text);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.links a:hover {
    color: var(--primary);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    margin-left: 2rem;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--bg);
}

.hero {
    text-align: center;
    padding: 10rem 1rem;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('/static/images/hero.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--primary);
}

[data-theme="dark"] .hero {
    background: linear-gradient(rgba(15, 15, 18, 0.6), rgba(15, 15, 18, 0.9)), url('/static/images/hero.jpg');
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 20px var(--primary-glow);
}

.hero p {
    font-size: 1.2rem;
    color: #ddd;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    background: var(--accent-gradient);
    color: #000 !important;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 2px;
    margin-top: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.content {
    max-width: 1000px;
    margin: 5rem auto;
    padding: 0 2rem;
}

h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--text);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto;
}

.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.game-item {
    background: var(--surface);
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
}

.game-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

[data-theme="dark"] .game-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.game-content {
    padding: 1.5rem;
}

.game-item h3 {
    font-family: 'Cinzel', serif;
    margin-top: 0;
    color: var(--primary);
}

.badge {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 2px;
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.btn-small {
    background: transparent;
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 2px;
    font-size: 0.8rem;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
}

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

.btn-small.secondary {
    background: transparent;
    border-color: var(--text-dim);
    color: var(--text-dim);
}

.btn-small.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

/* Game Player Styles */
.game-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.game-placeholder-text {
    color: var(--primary);
    font-family: 'Cinzel', serif;
    text-align: center;
}

/* Blog Styles */
.blog-list {
    display: grid;
    gap: 2rem;
}

.blog-item {
    background: var(--surface);
    padding: 2rem;
    border-left: 2px solid var(--primary);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.blog-item h3 a {
    color: var(--text);
    text-decoration: none;
    font-family: 'Cinzel', serif;
}

.blog-item h3 a:hover {
    color: var(--primary);
}

.meta {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    display: block;
}

/* Community Styles */
.prayer-form {
    background: var(--surface);
    padding: 3rem;
    border-radius: 4px;
    margin-bottom: 4rem;
    border: 1px solid var(--border);
}

.input-field {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.input-field {
    height: 150px;
}

.prayer-item {
    background: var(--surface);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.prayer-item strong {
    color: var(--primary);
    font-family: 'Cinzel', serif;
}

footer {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface);
    color: var(--text-dim);
    margin-top: 6rem;
    border-top: 1px solid var(--border);
}

.trademark-notice {
    font-size: 0.7rem;
    margin-top: 1rem;
    opacity: 0.6;
}

/* Mission section */
.mission {
    text-align: center;
    background: var(--surface);
    padding: 6rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mission p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}
