/* ============================================
   LA MIDNIGHT - GLOBAL CSS
   Author: Rogue RPG BB

   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Variables)
   ============================================ */

:root {
    /* Typography */
    --font-display: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    
    /* Dark Theme (Default) */
    --bg: #050505;
    --bg-alt: #0a0a0a;
    --bg-card: #0f0f0f;
    --bg-input: #111111;
    --text: #e5e5e5;
    --text-dim: #555;
    --text-dark: #2a2a2a;
    --text-muted: #888888;
    --accent: #ff4422;
    --accent-dim: rgba(255, 68, 34, 0.3);
    --accent-hover: #ff6644;
    --border: #1a1a1a;
    --border-light: #2a2a2a;
    
    /* Status Colors */
    --success: #4ade80;
    --success-bg: rgba(74, 222, 128, 0.1);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.1);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    
    /* Effects */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.3s var(--ease);
}

/* Light Theme */
[data-theme="light"] {
    --bg: #f5f5f0;
    --bg-alt: #eaeae5;
    --bg-card: #ffffff;
    --bg-input: #fafafa;
    --text: #1a1a1a;
    --text-dim: #666;
    --text-dark: #bbb;
    --text-muted: #999999;
    --border: #dddddd;
    --border-light: #cccccc;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    text-align: left;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

/* img {
    max-width: 100%;
    height: auto;
    border: none; 
} */

hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

/* ============================================
   LINKS
   ============================================ */

a:link,
a:visited {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

a:hover,
a:active {
    color: var(--accent);
    text-decoration: none;
}

/* ============================================
   CONTAINER & WRAPPER
   ============================================ */

#container {
    color: var(--text);
    text-align: left;
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    min-width: 320px;
}

.wrapper {
    width: 90%;
    min-width: 320px;
    max-width: 1400px;
    margin: 0 auto;
}

#content {
    background: transparent;
    /* width: auto !important; */
    padding: 2rem 0;
    overflow: hidden;
}

/* ============================================
   NAVIGATION BREADCRUMB
   ============================================ */

.navigation {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    padding: 1rem 0;
}

.navigation a {
    color: var(--text-dim);
}

.navigation a:hover {
    color: var(--accent);
}

.navigation .nav-sep,
.navigation .navsep {
    margin: 0 0.5rem;
    color: var(--text-dark);
}

.navigation .active {
    color: var(--text);
}

/* ============================================
   TABLES (Legacy MyBB)
   ============================================ */

.tborder {
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin: auto;
    margin-top: 1rem;
    clear: both;
}

.thead {
    background: var(--bg-alt);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.thead a:link,
.thead a:visited,
.thead a:hover,
.thead a:active {
    color: var(--text);
}

.tcat {
    background: var(--bg-alt);
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.tcat a:link,
.tcat a:visited {
    color: var(--text-muted);
}

.tcat a:hover,
.tcat a:active {
    color: var(--accent);
}

.trow1,
.trow2 {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
}

.trow1 {
    background: var(--bg-card);
}

.trow2 {
    background: var(--bg-alt);
}

.trow_shaded {
    background: var(--warning-bg);
    border-left: 3px solid var(--warning);
}

.trow_sep {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-dark);
    text-transform: uppercase;
}

.tfoot {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
}

.tfoot a:link,
.tfoot a:visited {
    color: var(--text-dim);
}

.tfoot a:hover,
.tfoot a:active {
    color: var(--accent);
}

/* Smalltext in tables */
.smalltext {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.largetext {
    font-size: 1rem;
    font-weight: 600;
}

/* ============================================
   FORUM STATUS ICONS (CSS Only)
   ============================================ */

.forum_status,
td.forum_status {
    width: 50px;
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* Status via CSS content */
.forum_on::before { content: "●"; color: var(--accent); }
.forum_off::before { content: "○"; color: var(--text-dark); }
.forum_offlock::before { content: "×"; color: var(--text-dark); }
.forum_offlink::before { content: "→"; color: var(--text-dim); }

/* ============================================
   FORMS
   ============================================ */

input.textbox,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    width: 100%;
    transition: var(--transition);
}

input.textbox:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-dim);
}

select {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.button,
input.button,
input[type="submit"],
button {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.button:hover,
input.button:hover,
input[type="submit"]:hover,
button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 1rem 0;
    font-family: var(--font-display);
}

.pagination a,
.pagination .pagination_current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .pagination_current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.pagination .pages {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-right: 0.5rem;
}

/* ============================================
   ALERTS & NOTICES
   ============================================ */

.pm_alert,
.red_alert {
    background: var(--error-bg);
    border: 1px solid var(--error);
    border-left: 3px solid var(--error);
    color: var(--text);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.pm_alert a,
.red_alert a {
    color: var(--accent);
}

/* ============================================
   QUOTES & CODE
   ============================================ */

blockquote,
.quote_body {
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
}

.quote_author {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

code,
.codeblock {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    overflow-x: auto;
}

/* ============================================
   EDITOR
   ============================================ */

.editor {
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin: 1rem 0;
}

.editor_toolbar {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
}

/* ============================================
   MODALS & POPUPS
   ============================================ */

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.modal .thead {
    background: var(--bg-alt);
}

/* jGrowl Notifications */
.jGrowl-notification {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-left: 3px solid var(--accent) !important;
    color: var(--text) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.75rem !important;
}

/* ============================================
   FOOTER
   ============================================ */

#footer {
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    padding: 2rem 0;
}

#footer .upper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

#footer .lower {
    padding-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    text-align: center;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.float_left { float: left; }
.float_right { float: right; }
.clear { clear: both; }
.hidden { display: none; }

.align_center { text-align: center; }
.align_left { text-align: left; }
.align_right { text-align: right; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .tborder {
        overflow-x: auto;
    }
    
    .thead,
    .tcat,
    .trow1,
    .trow2,
    .tfoot {
        padding: 0.5rem;
    }
    
    #footer .upper {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    body {
        background: white;
        color: black;
    }
    
    .tborder {
        border: 1px solid #ccc;
    }
}