

/* =====================================================
   THE UPSIDE DOWN - STRANGER THINGS RPG THEME
   MyBB 1.8 Complete Theme
   ===================================================== */

/* ----- IMPORTS & FONTS ----- */
@import url(https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Bebas+Neue&family=Special+Elite&display=swap);

/* ----- CSS VARIABLES ----- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0d0d0d;
    --bg-tertiary: #111111;
    --bg-card: rgba(0,0,0,0.3);
    --bg-card-hover: rgba(30,10,15,0.3);
    
    --red-primary: #dc2626;
    --red-secondary: #991b1b;
    --red-dark: #450a0a;
    --red-glow: rgba(220,38,38,0.3);
    
    --text-primary: #e5e5e5;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;
    --text-accent: #f87171;
    
    --border-color: rgba(255,255,255,0.05);
    --border-accent: rgba(153,27,27,0.3);
    
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Cormorant Garamond', Georgia, serif;
    --font-mono: 'Special Elite', monospace;
    
    --transition: all 0.3s ease;
}

/* ----- GLOBAL RESET & BASE ----- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
}

/* Atmospheric Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(153,27,27,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(153,27,27,0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 50%, rgba(69,10,10,0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Scanlines Effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.1) 2px,
        rgba(0,0,0,0.1) 4px
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
}

/* ----- LINKS ----- */
a:link, a:visited {
    color: var(--text-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover, a:active {
    color: var(--red-primary);
    text-decoration: none;
}

/* ----- WRAPPER ----- */
#container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* =====================================================
   NAVIGATION & HEADER
   ===================================================== */

/* ===== TOP BAR ===== */
.top-bar {
    background: rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.top-bar-left a {
    color: rgba(248,113,113,0.7) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-bar-left a:hover {
    color: #f87171 !important;
}

.welcome-text {
    color: #525252;
}

.guest-name {
    color: #a3a3a3;
}

.user-name {
    color: #f87171 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-name:hover {
    color: #dc2626 !important;
    text-shadow: 0 0 10px rgba(220,38,38,0.5);
}

.divider {
    color: #262626;
}

.top-link {
    color: rgba(248,113,113,0.7) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-link:hover {
    color: #f87171 !important;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-right a {
    color: #525252;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.top-bar-right a:hover {
    color: #f87171;
}

.top-icon {
    color: #525252;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.top-icon:hover {
    color: #f87171;
}

.top-icon svg {
    width: 16px;
    height: 16px;
}

/* ===== SITE HEADER / LOGO ===== */
.site-header {
    padding: 50px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(153,27,27,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.header-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 11px;
    letter-spacing: 0.5em;
    color: rgba(220,38,38,0.5);
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
}

.site-logo {
    position: relative;
}

.site-logo a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 60px;
    letter-spacing: 0.05em;
    background: linear-gradient(180deg, #f87171 0%, #dc2626 50%, #7f1d1d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    filter: drop-shadow(0 0 30px rgba(220,38,38,0.4));
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1.1;
}

.site-logo a:hover {
    filter: drop-shadow(0 0 50px rgba(220,38,38,0.6));
}

.header-tagline {
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #525252;
    text-transform: uppercase;
    margin-top: 15px;
    position: relative;
}

/* ===== MAIN NAVIGATION ===== */
.main-nav {
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.main-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
}

.nav-menu li {
    margin: 0;
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #a3a3a3 !important;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: rgba(220,38,38,0.5);
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #f87171 !important;
}

.nav-menu a:hover::after {
    width: 30px;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    color: #a3a3a3;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 0.15em;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-toggle:hover {
    color: #f87171;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

.mobile-nav-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-nav-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    padding: 0 0 15px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-menu.mobile-open a {
    padding: 12px 20px;
    border-left: 2px solid transparent;
}

.nav-menu.mobile-open a::after {
    display: none;
}

.nav-menu.mobile-open a:hover {
    background: rgba(220,38,38,0.1);
    border-left-color: #dc2626;
}

/* Panel verstecken */
#panel {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

/* =====================================================
   FORUM TABLES & CATEGORIES
   ===================================================== */

.tborder {
    background: transparent;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    overflow: hidden;
}

.thead {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 25px;
    position: relative;
}

.thead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--red-primary), var(--red-dark));
}

.thead a:link, .thead a:hover, .thead a:visited, .thead a:active {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.thead a:hover {
    color: var(--text-accent);
}

.tcat {
    background: rgba(153,27,27,0.1);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 25px;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tcat a {
    color: var(--text-muted) !important;
}

.trow1, .trow2 {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    transition: var(--transition);
}

.trow1:hover, .trow2:hover {
    background: var(--bg-card-hover);
}

.trow_shaded {
    background: rgba(153,27,27,0.05);
}

/* ===== FORUM BIT ===== */
.forum_status {
    padding: 20px;
    vertical-align: middle;
}

.forum_status img {
    opacity: 0.6;
    transition: var(--transition);
}

.trow1:hover .forum_status img,
.trow2:hover .forum_status img {
    opacity: 1;
    filter: drop-shadow(0 0 10px var(--red-glow));
}

.forum_info {
    padding: 20px 15px;
}

.forum_info strong a {
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.1em;
    color: var(--text-primary) !important;
    display: block;
    margin-bottom: 5px;
}

.forum_info strong a:hover {
    color: var(--text-accent) !important;
}

.forum_info .forum_desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.forum_stats {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    vertical-align: middle;
}

.forum_lastpost {
    padding: 20px;
    font-size: 12px;
    color: var(--text-muted);
    vertical-align: middle;
}

.forum_lastpost a {
    color: var(--text-secondary) !important;
}

.forum_lastpost a:hover {
    color: var(--text-accent) !important;
}

/* ===== THREAD LIST ===== */
.thread_status {
    padding: 15px;
}

.thread_subject {
    padding: 15px 10px;
}

.thread_subject a {
    font-weight: 500;
}

.thread_author, .thread_replies, .thread_views {
    padding: 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.thread_lastpost {
    padding: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

/* =====================================================
   POSTS
   ===================================================== */

.post {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.post .thead {
    padding: 15px 20px;
}

.post_author {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    padding: 20px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    width: 200px;
    vertical-align: top;
}

.post_author .largetext {
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.1em;
}

.post_author .smalltext {
    color: var(--text-muted);
    font-size: 11px;
}

.post_avatar {
    margin-bottom: 15px;
}

.post_avatar img {
    border-radius: 0;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.post_avatar img:hover {
    border-color: var(--red-secondary);
    box-shadow: 0 0 20px var(--red-glow);
}

.post_body {
    padding: 25px;
    vertical-align: top;
}

.post_content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
}

.post_content blockquote {
    background: var(--bg-secondary);
    border-left: 3px solid var(--red-secondary);
    padding: 15px 20px;
    margin: 15px 0;
    color: var(--text-muted);
}

.post_content code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-accent);
}

.signature {
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 12px;
}

/* =====================================================
   BUTTONS & FORMS
   ===================================================== */

.button, input[type="submit"], input[type="button"] {
    background: linear-gradient(135deg, var(--red-secondary) 0%, var(--red-dark) 100%);
    border: 1px solid var(--red-secondary);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 12px 25px;
    cursor: pointer;
    transition: var(--transition);
}

.button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-secondary) 100%);
    box-shadow: 0 0 20px var(--red-glow);
}

.button.small_button {
    padding: 8px 15px;
    font-size: 10px;
}

input[type="text"], input[type="password"], textarea, select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 15px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
    border-color: var(--red-secondary);
    outline: none;
    box-shadow: 0 0 15px rgba(153,27,27,0.2);
}

/* =====================================================
   PAGINATION
   ===================================================== */

.pagination {
    padding: 15px 0;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--bg-card-hover);
    border-color: var(--red-secondary);
    color: var(--text-accent);
}

.pagination .pagination_current {
    background: var(--red-secondary);
    border-color: var(--red-secondary);
    color: var(--text-primary);
}

/* =====================================================
   FOOTER
   ===================================================== */

#footer {
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

#footer a {
    color: var(--text-muted);
}

#footer a:hover {
    color: var(--text-accent);
}

#footer #copyright {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* =====================================================
   MISC ELEMENTS
   ===================================================== */

.navigation {
    padding: 15px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.navigation a {
    color: var(--text-muted);
}

.navigation a:hover {
    color: var(--text-accent);
}

.alert, .notice, .pm_alert {
    background: rgba(153,27,27,0.1);
    border: 1px solid var(--red-secondary);
    border-left: 3px solid var(--red-primary);
    padding: 15px 20px;
    margin: 15px 0;
    color: var(--text-secondary);
}

.success {
    background: rgba(34,197,94,0.1);
    border-color: #166534;
    border-left-color: #22c55e;
}

.error {
    background: rgba(220,38,38,0.2);
    border-color: var(--red-primary);
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.codeblock {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 15px;
    margin: 15px 0;
    font-family: var(--font-mono);
    font-size: 12px;
    overflow-x: auto;
}

.codeblock .title {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* =====================================================
   SCROLLBAR
   ===================================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--red-dark);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-secondary);
}

/* Selection */
::selection {
    background: var(--red-secondary);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--red-secondary);
    color: var(--text-primary);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media screen and (max-width: 768px) {
    #container, .wrapper {
        padding: 10px;
    }
    
    .top-bar-inner {
        padding: 8px 15px;
        font-size: 11px;
    }
    
    .top-bar-left {
        gap: 8px;
    }
    
    .site-header {
        padding: 30px 15px;
    }
    
    .site-logo a {
        font-size: 36px;
    }
    
    .header-subtitle,
    .header-tagline {
        font-size: 9px;
        letter-spacing: 0.3em;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.mobile-open {
        display: flex;
    }
    
    .post_author {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .trow1, .trow2 {
        padding: 15px;
    }
    
    .forum_stats, .forum_lastpost {
        display: none;
    }
    
    .thead {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .top-bar-left .divider,
    .welcome-text {
        display: none;
    }
    
    .site-logo a {
        font-size: 28px;
    }
    
    .top-bar-inner {
        flex-direction: column;
        gap: 8px;
    }
    
    .top-bar-left {
        justify-content: center;
    }
    
    .top-bar-right {
        justify-content: center;
    }
    
    .thead a:link {
        font-size: 14px;
    }
    
    .forum_info strong a {
        font-size: 14px;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tborder {
    animation: fadeIn 0.5s ease-out;
}

		