/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121214;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Header & Nav */
header {
    background-color: #1a1a1e;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #333;
    text-align: center;
}

header h1 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
    letter-spacing: 1px;
}

.subtitle {
    margin: 0.2rem 0 1rem 0;
    color: #888;
    font-size: 0.9rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

nav a:hover, nav a.active {
    color: #7289da;
}

/* Main Layout */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero {
    background-color: #1e1e24;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #2a2a32;
    text-align: center;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: #7289da;
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #5b6eae;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #1a1a1e;
    color: #666;
    font-size: 0.85rem;
    border-top: 1px solid #222;
    margin-top: 3rem;
}

/* --- Page Transition Styles --- */

/* Initial state when page loads */
body {
	opacity: 0;
	transition: opacity 0.35s ease-in-out;
}

/* State when page is fully visible */
body.page-loaded {
	opacity: 1;
}

/* State when navigating away */
body.page-exit {
	opacity: 0;
}

/* --- Floating Update Button (FAB) --- */
.update-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #1a1a1e;
    border: 2px solid #7289da;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-fab img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.update-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(114, 137, 218, 0.6);
}

/* --- Update Pop-Up Modal --- */
.update-modal {
    display: none; /* Controlled by JS */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.update-card {
    background-color: #16161a;
    border: 1px solid #2a2a32;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    animation: popUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2a32;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.update-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.update-title h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #ffffff;
}

.update-icon {
    width: 22px;
    height: 22px;
}

.update-close {
    color: #888;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.update-close:hover {
    color: #ff79c6;
}

.update-date {
    display: inline-block;
    font-size: 0.8rem;
    color: #7289da;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.update-body h4 {
    margin: 0 0 0.8rem 0;
    color: #e0e0e6;
}

.update-body ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

.update-body a {
    color: #7289da;
    text-decoration: none;
}

.update-body a:hover {
    text-decoration: underline;
}

/* ==========================================
   THEME VARIABLES (Dual Mixed Colors)
   ========================================== */

/* 1. Default Dark Mode Palette */
:root {
    --bg-main: #0e0e12;
    --bg-card: #16161c;
    --border-color: #262632;
    --text-main: #e0e0e8;
    --text-muted: #9494a8;
    
    /* Dual Mixed Accent Colors (Cyan + Neon Violet) */
    --accent-primary: #00d2ff;
    --accent-secondary: #9d4edd;
    --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #9d4edd 100%);
    --accent-glow: rgba(0, 210, 255, 0.25);
}

/* 2. Light Mode Palette Override */
body.light-theme {
    --bg-main: #f4f5fa;
    --bg-card: #ffffff;
    --border-color: #e1e1ec;
    --text-main: #1a1a24;
    --text-muted: #62627a;
    
    /* Dual Mixed Accent Colors for Light Mode (Vibrant Cobalt + Purple) */
    --accent-primary: #2563eb;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --accent-glow: rgba(37, 99, 235, 0.18);
}

/* Base Body Transition for Theme Swaps */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Styled Double-Mixed Accent Elements */
.hero, .art-card, .lore-card, .character-card, .update-card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Gradient Text for Headings */
.gradient-title, h1 span, h2 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
    background: var(--accent-gradient);
    border: none;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-glow);
}

