/* ==========================================
   MONACO RACING CLUB - MODERN REBUILD
   Exakte Farbcodes aus Original-Website
   ========================================== */

/* CSS Custom Properties - Exakte Farbcodes */
:root {
    /* Primärfarben */
    --primary-color: #4a4b4e;
    --secondary-color: #93969b;
    --heading-color: #ffffff;
    --body-color: #ffffff;
    
    /* Akzentfarben */
    --accent-red: #e6332f;
    --accent-dark-red: #731a18;
    --accent-light-gray: #d6d7cf;
    
    /* Hintergründe */
    --bg-dark: #1a1a1a;
    --bg-darker: #0f0f0f;
    --bg-card: #2a2a2a;
    
    /* Schriften */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Animation Timing */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Variablen */
[data-theme="light"] {
    --primary-color: #c8c9cc;
    --secondary-color: #5a5d63;
    --heading-color: #1a1a1a;
    --body-color: #2a2a2a;
    --accent-red: #cc2420;
    --accent-dark-red: #8a1e1c;
    --accent-light-gray: #6a6b63;
    --bg-dark: #f0f0f0;
    --bg-darker: #e0e0e0;
    --bg-card: #ffffff;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 50%, #d8d8d8 100%);
    color: var(--body-color);
}

[data-theme="light"] .navbar {
    background: rgba(240, 240, 240, 0.95);
    border-bottom-color: rgba(204, 36, 32, 0.3);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(240, 240, 240, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .nav-links a {
    color: var(--heading-color);
}

[data-theme="light"] .nav-links {
    background: #f0f0f0;
}

[data-theme="light"] .submenu {
    background: #f0f0f0;
    border-color: rgba(204, 36, 32, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .menu-toggle span {
    background: var(--heading-color);
}

[data-theme="light"] .footer {
    background: #d8d8d8;
    border-top-color: rgba(204, 36, 32, 0.2);
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(90, 93, 99, 0.3);
}

[data-theme="light"] .loading {
    background: #e0e0e0;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #d0d0d0;
}

[data-theme="light"] .social-links a:hover {
    background: rgba(204, 36, 32, 0.08);
    border-color: rgba(204, 36, 32, 0.35);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--accent-red);
    border-radius: 50px;
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
    color: var(--heading-color);
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--accent-red);
    color: #ffffff;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
    width: 18px;
    height: 18px;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun {
    display: block;
}

/* Reset und Basis */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--primary-color) 100%);
    color: var(--body-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: var(--accent-red);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-light-gray);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(230, 51, 47, 0.3);
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    padding: 0.5rem 2rem;
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-dark-red));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

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

.nav-links a {
    color: var(--heading-color);
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Submenu / Dropdown Navigation */
.has-submenu {
    position: relative;
    display: flex;
    align-items: center;
}

.has-submenu > a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0;
}

.has-submenu > a::after {
    display: none;
}

.dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-top: 1px;
}

.has-submenu:hover .dropdown-arrow,
.has-submenu.open .dropdown-arrow {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-dark);
    border: 1px solid rgba(230, 51, 47, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all var(--transition-fast);
    list-style: none;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    display: block;
}

.submenu a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
    color: var(--heading-color);
}

.submenu a:hover {
    background: rgba(230, 51, 47, 0.1);
    color: var(--accent-red);
}

.submenu a.active {
    color: var(--accent-red);
}

[data-theme="light"] .submenu a {
    color: var(--heading-color);
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .has-submenu {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: static;
        text-align: center;
    }

    .has-submenu > a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        font-size: 1.5rem;
        padding: 0.5rem 0;
    }

    .submenu {
        position: static;
        background: rgba(230, 51, 47, 0.05);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        min-width: unset;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.35s ease;
    }

    .has-submenu.open .submenu {
        max-height: 300px;
        padding: 0.25rem 0 0.75rem;
    }

    .submenu a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        color: var(--secondary-color);
        text-align: center;
        white-space: normal;
    }

    .submenu a:hover,
    .submenu a.active {
        color: var(--accent-red);
        background: transparent;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--heading-color);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(230, 51, 47, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--heading-color) 0%, var(--accent-light-gray) 50%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--body-color);
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-dark-red) 100%);
    color: var(--heading-color);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(230, 51, 47, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(230, 51, 47, 0.4);
    color: var(--heading-color);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Sections */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-dark-red));
    border-radius: 2px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-medium);
    border: 1px solid rgba(147, 150, 155, 0.1);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 51, 47, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(230, 51, 47, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Member Cards */
.member-card {
    text-align: center;
    padding: 3rem 2rem;
}

.member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--accent-red);
    transition: all var(--transition-medium);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.member-card:hover .member-image {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(230, 51, 47, 0.3);
}

.member-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--accent-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transform: translateY(100%);
    transition: transform var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: var(--heading-color);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(230, 51, 47, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--secondary-color);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent-red);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.social-links a img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.social-links a:hover {
    background: rgba(230, 51, 47, 0.1);
    border-color: rgba(230, 51, 47, 0.4);
    transform: translateY(-4px);
}

.social-links a:hover img {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 10px rgba(230, 51, 47, 0.5));
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(147, 150, 155, 0.2);
}

.footer-bottom p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
}

/* Animationen */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Light/Dark Mode – Mobile Overrides (identisch mit Desktop) */
@media (max-width: 768px) {
    [data-theme="light"] body {
        background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--primary-color) 100%);
        color: var(--body-color);
    }

    [data-theme="light"] .navbar {
        background: rgba(240, 240, 240, 0.95);
        border-bottom-color: rgba(204, 36, 32, 0.3);
    }

    [data-theme="light"] .navbar.scrolled {
        background: rgba(240, 240, 240, 0.98);
    }

    [data-theme="light"] .nav-links {
        background: var(--bg-dark);
    }

    [data-theme="light"] .nav-links a {
        color: var(--heading-color);
    }

    [data-theme="light"] .card {
        background: var(--bg-card);
        border-color: rgba(0, 0, 0, 0.08);
    }

    [data-theme="light"] .submenu {
        background: rgba(204, 36, 32, 0.05);
    }

    [data-theme="light"] .submenu a {
        color: var(--secondary-color);
    }
}

/* Querformat (Landscape) Mobile – Hamburger + Toggle ausblenden */
@media (max-width: 1024px) and (orientation: landscape) {
    .theme-toggle {
        display: none;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: right var(--transition-medium);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    .has-submenu {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: static;
        text-align: center;
    }

    .has-submenu > a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        font-size: 1.3rem;
        padding: 0.5rem 0;
    }

    .submenu {
        position: static;
        background: rgba(230, 51, 47, 0.05);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        min-width: unset;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.35s ease;
    }

    .has-submenu.open .submenu {
        max-height: 300px;
        padding: 0.25rem 0 0.75rem;
    }

    .submenu a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        color: var(--secondary-color);
        text-align: center;
        white-space: normal;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-toggle {
        display: none;
    }

    .member-row {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center;
    }

    .member-row img {
        max-width: 220px;
        margin: 0 auto;
        display: block;
    }

    .member-row > div:last-child {
        padding-top: 0 !important;
    }

    .email-link {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        word-break: break-all;
        gap: 0.3rem !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition-medium);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .hero {
        padding: 8rem 1.5rem 4rem;
    }
    
    section {
        padding: 4rem 1.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-accent { color: var(--accent-red); }
.text-secondary { color: var(--secondary-color); }
.bg-dark { background-color: var(--bg-dark); }
.bg-darker { background-color: var(--bg-darker); }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 5px;
}

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

/* Selection Styling */
::selection {
    background: var(--accent-red);
    color: var(--heading-color);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-medium);
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(230, 51, 47, 0.3);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
