/* ==========================================================================
   ROOT VARIABLES & RESETS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Creator Page Core Colors */
    --red: #ff1e1e;
    --dark-red: #8f0000;
    --black: #050505;
    --bg: #0a0a0a;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 0, 0, 0.2);
    --text: #f5f5f5;
    --muted: #9d9d9d;
    
    /* Main Theme Variables (Required to keep the exact Navbar style) */
    --arterial-spray: #ff0505;
    --muted-bone: #b8a5a5;
    --bone-white: #ffffff;
    --font-ui: 'Teko', 'Segoe UI', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body, html {
    background: #000;
    color: white;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }

/* ==========================================================================
   PREMIUM MAIN NAVBAR - STICKY FIX
   ========================================================================== */
.navbar {
    /* THE FIX: Sticky keeps it at the top, but inside the document flow so it pushes content down */
    position: sticky; 
    top: 0;
    left: 0;
    width: 100%;
    min-height: 70px;
    height: auto;
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, .98) 0%, rgba(12, 0, 0, .92) 60%, rgba(22, 0, 0, .96) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 2px solid rgba(110, 25, 25, .7);
    z-index: 1000;
    animation: organicHeartbeatBorder 4s ease-in-out infinite;
    
    /* Removes the old custom border-radius/floating logic you had here to match main site */
    border-radius: 0; 
    transform: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .55);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 3vw, 42px);
    flex-wrap: wrap; /* Wraps cleanly on mobile */
    margin: 0;
    padding: 5px 0;
    list-style: none;
}

.navbar li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(5px, 1.5vw, 8px) clamp(10px, 2vw, 16px);
    font-family: var(--font-ui);
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 1vw, 3px);
    text-decoration: none;
    color: var(--muted-bone);
    transition: color .35s ease, text-shadow .35s ease, transform .35s ease;
    white-space: nowrap;
}

/* Blood Slash */
.navbar li a::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0%;
    height: 3px;
    background: var(--arterial-spray);
    transform: translate(-50%, -50%) rotate(-4deg);
    opacity: 0;
    border-radius: 20px;
    box-shadow: 0 0 10px var(--arterial-spray), 0 0 20px rgba(255, 30, 30, .5);
    transition: width .45s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}

/* Hover & Active States */
.navbar li a:hover {
    color: var(--bone-white);
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(255, 255, 255, .3), 0 0 18px rgba(255, 40, 40, .7);
}
.navbar li a:hover::before { width: 110%; opacity: 1; }
.navbar li a:active { transform: scale(.96); }

.navbar li a.active {
    color: var(--bone-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, .35), 0 0 18px rgba(255, 0, 0, .75);
}
.navbar li a.active::before { width: 110%; opacity: 1; }

@keyframes organicHeartbeatBorder {
    0% { border-bottom-color: #4d1111; box-shadow: 0 4px 18px rgba(0, 0, 0, .55); }
    10% { border-bottom-color: #ff2d2d; box-shadow: 0 4px 18px rgba(0, 0, 0, .55), 0 0 12px rgba(255, 40, 40, .35); }
    20% { border-bottom-color: #6e1616; }
    45% { border-bottom-color: #5a1414; }
    50% { border-bottom-color: #ff4545; box-shadow: 0 4px 18px rgba(0, 0, 0, .55), 0 0 20px rgba(255, 40, 40, .55); }
    60% { border-bottom-color: #6e1616; }
    100% { border-bottom-color: #4d1111; box-shadow: 0 4px 18px rgba(0, 0, 0, .55); }
}

.auth-links {
    position: absolute;
    right: clamp(15px, 4vw, 40px);
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 15px);
}

.auth-links a { transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease; }
.auth-links a:hover { transform: translateY(-2px); box-shadow: 0 0 18px rgba(255, 45, 45, .45); }

/* Stack navbar neatly on extreme small screens */
@media(max-width: 800px) {
    .auth-links { position: relative; right: 0; justify-content: center; width: 100%; margin-top: 10px; }
    .navbar { flex-direction: column; padding-bottom: 15px; }
}

/* ==========================================================================
   BACKGROUND MEDIA & FOG
   ========================================================================== */
.bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5;
    overflow: hidden;
    pointer-events: none;
}

.bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.22) contrast(1.15) saturate(1.1);
}

.bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 0, 0, 0.18), transparent 55%),
                linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.92));
}

.fog {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.12), transparent 60%);
    animation: pulse 5s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    /* Adjusted min-height to factor in the sticky navbar */
    min-height: calc(100vh - 70px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Reduced massive top padding since sticky navbar already pushes this section down naturally */
    padding: clamp(40px, 8vh, 100px) clamp(15px, 4vw, 40px) 40px;
    width: 100%;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: clamp(2px, 2vw, 5px);
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.6), 0 0 80px rgba(255, 0, 0, 0.25);
    z-index: 2;
    word-wrap: break-word;
}

.hero h1 span { color: var(--red); }

.hero p {
    margin-top: clamp(20px, 4vw, 30px);
    max-width: 900px;
    width: 100%;
    color: #d8d8d8;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    line-height: 1.9;
    z-index: 2;
}

.warning-line {
    margin-top: clamp(20px, 4vw, 30px);
    border: 1px solid rgba(255, 0, 0, 0.35);
    padding: clamp(10px, 2vw, 14px) clamp(15px, 4vw, 30px);
    background: rgba(255, 0, 0, 0.07);
    backdrop-filter: blur(10px);
    letter-spacing: clamp(1px, 1vw, 3px);
    text-transform: uppercase;
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    color: #ff7070;
    z-index: 2;
}

/* ==========================================================================
   CREATOR WALL GRID
   ========================================================================== */
.creator-wall {
    width: 100%;
    padding: clamp(40px, 8vw, 80px) clamp(15px, 4vw, 40px) 120px;
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
}

.wall-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(40px, 8vw, 80px);
    text-transform: uppercase;
    letter-spacing: clamp(2px, 1.5vw, 4px);
    color: white;
}

.wall-title span { color: var(--red); }

.creator-grid {
    display: grid;
    /* Flawless layout: Scales dynamically, limits small cards to 230px, fills space */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: clamp(25px, 5vw, 45px);
    width: 100%;
}

.creator {
    position: relative;
    text-align: center;
    cursor: pointer;
    transition: transform 0.4s ease;
    padding: 10px;
}

.creator:hover { transform: translateY(-10px) scale(1.02); }

.creator::before {
    content: "";
    position: absolute;
    /* Adjusts circle wrapper dynamically based on available width */
    top: 10px; bottom: 10px; left: 10px; right: 10px;
    max-width: 250px;
    max-height: 250px;
    margin: 0 auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 0, 0, 0.18);
    animation: rotate 12s linear infinite;
    pointer-events: none;
}

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

.creator-image {
    width: clamp(160px, 40vw, 210px);
    height: clamp(160px, 40vw, 210px);
    margin: auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 4px solid rgba(255, 0, 0, 0.55);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.45), 0 0 70px rgba(255, 0, 0, 0.15);
    z-index: 2;
}

.creator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.creator:hover .creator-image img {
    transform: scale(1.08);
    filter: contrast(1.08);
}

.blood-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 0, 0, 0.45), transparent);
    opacity: 0.7;
}

.creator-name {
    margin-top: 25px;
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 1px;
}

.creator-role {
    color: #ff6565;
    margin-top: 8px;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.creator-tag {
    margin-top: 14px;
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(255, 0, 0, 0.35);
    background: rgba(255, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    font-size: 0.75rem;
    color: #ffb0b0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   CREATOR MODAL (FULLY FLUID)
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: clamp(15px, 4vw, 40px);
}

.modal.active { display: flex; }

.modal-box {
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 0, 0, 0.25);
    background: linear-gradient(to bottom right, rgba(20, 0, 0, 0.96), rgba(0, 0, 0, 0.98));
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.2);
    animation: modalShow 0.4s ease;
    border-radius: 8px;
}

@keyframes modalShow {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close {
    position: absolute;
    right: clamp(15px, 3vw, 25px);
    top: clamp(15px, 3vw, 20px);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover { color: var(--red); }

.modal-content {
    display: grid;
    /* Grid fluidly adjusts left column to a min of 300px up to 400px based on screen size */
    grid-template-columns: minmax(300px, 400px) 1fr;
    max-height: 90vh;
}

.modal-left {
    border-right: 1px solid rgba(255, 0, 0, 0.18);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(30px, 5vw, 40px);
    position: relative;
    overflow: hidden;
}

.modal-left::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.15), transparent 65%);
}

.modal-avatar {
    width: clamp(180px, 35vw, 260px);
    height: clamp(180px, 35vw, 260px);
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.45), 0 0 100px rgba(255, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-right {
    padding: clamp(30px, 5vw, 60px);
    overflow-y: auto;
    max-height: 90vh;
    scrollbar-width: thin;
}

.modal-right h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 10px;
    line-height: 1.1;
}

.modal-sub {
    color: #ff6767;
    letter-spacing: clamp(1px, 1vw, 3px);
    text-transform: uppercase;
    margin-bottom: clamp(15px, 4vw, 30px);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
}

.description {
    color: #ddd;
    line-height: 1.8;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
}

.section { margin-top: clamp(20px, 5vw, 35px); }

.section h3 {
    margin-bottom: 18px;
    color: var(--red);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 2vw, 12px);
}

.badge {
    padding: 8px clamp(12px, 3vw, 16px);
    background: rgba(255, 0, 0, 0.08);
    border: 1px solid rgba(255, 0, 0, 0.22);
    color: #ffcbcb;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    letter-spacing: 1px;
    border-radius: 4px;
}

.footer-note {
    margin-top: clamp(25px, 5vw, 40px);
    padding: clamp(15px, 4vw, 20px);
    border-left: 3px solid var(--red);
    background: rgba(255, 0, 0, 0.06);
    line-height: 1.8;
    color: #ccc;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
}

.modal-buttons {
    display: flex;
    gap: clamp(10px, 3vw, 16px);
    margin-top: clamp(20px, 4vw, 28px);
    flex-wrap: wrap;
}

.modal-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: clamp(10px, 3vw, 14px) clamp(20px, 5vw, 32px);
    background: linear-gradient(135deg, #ff2a2a, #9b0000);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 0, 0, .45);
    border-radius: 10px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    box-shadow: 0 0 20px rgba(255, 0, 0, .25);
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.modal-profile-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 0, 0, .55);
    background: linear-gradient(135deg, #ff3b3b, #c40000);
}
.modal-profile-btn:active { transform: scale(.97); }

.modal-showcase {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 0, 0, 0.35);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.15);
}

.modal-showcase img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: clamp(150px, 30vh, 250px);
}

/* Modal Stacking for Tablets & Mobile */
@media(max-width: 980px) {
    .modal-content { grid-template-columns: 1fr; }
    .modal-left { 
        border-right: none; 
        border-bottom: 1px solid rgba(255, 0, 0, 0.18); 
        padding-top: clamp(40px, 8vw, 60px); 
    }
}