/* ============================================================
   redcell.css — Styles for /games/redcell section
   Bahn Productions
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
    --red:        #c1121f;
    --red-bright: #e63946;
    --red-dim:    #7a0812;

    --dark:       #080808;
    --dark-2:     #111111;
    --dark-3:     #1a1a1a;
    --dark-4:     #010101;
    --dark-5:     #040404;

    --border:     rgba(255,255,255,0.07);

    --fs-hero:        clamp(3rem, 6vw, 5rem);
    --fs-section:     clamp(2rem, 4vw, 3rem);
    --fs-body:        1.05rem;
    --fs-body-sm:     0.95rem;
    --fs-label:       0.8rem;
    --fs-mono:        0.85rem;
    --fs-tag:         0.65rem;
}

/* Base font size — scales all rem units - ADJUST FOR OVERALL SCREEN ADAPTABILITY */
html { font-size: 16px; }

@media (min-width: 1920px) {
    html { font-size: 18px; }
}

@media (min-width: 2560px) {
    html {
        font-size: 20px;
    }
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: var(--dark-4);
    color: #e0e0e0;
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    font-size: var(--fs-body);
    line-height: 1.7;
    margin: 0;
}

h1, h2, h3, h4, h5 {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1;
    margin: 0;
}

a { color: inherit; }

.mono, code {
    font-family: 'Share Tech Mono', monospace;
}

/* ── GRID BACKGROUND ── */
.main-content {
    position: relative;
}

.main-content::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
            linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ── SOCIAL SIDEBAR (red hover) ── */
.social-sidebar {
    position: fixed;
    top: 5.5rem;
    right: 1rem;
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1280px) {
    .social-sidebar { display: flex; }
}

.social-sidebar-label {
    align-self: flex-end;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.social-sidebar-line {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.12);
}

.social-sidebar a {
    color: rgba(255,255,255,0.35);
    transition: color 0.2s, transform 0.2s;
    display: flex;
}

.social-sidebar a:hover {
    color: var(--red-bright, #e63946);
    transform: scale(1.1);
}

.social-sidebar svg {
    width: 1.35rem;
    height: 1.35rem;
}

/* ── HAMBURGER ANIMATION ── */
.menu-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.menu-open .menu-line-1 {
    transform: translateY(8px) rotate(45deg);
}

.menu-open .menu-line-2 {
    opacity: 0;
}

.menu-open .menu-line-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── HERO ── */
.rc-hero {
    position: relative;
    padding: 7rem 1.5rem 3rem;
    text-align: center;
    overflow: hidden;
}

.rc-hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: var(--fs-hero);
    font-weight: 700;
    color: #fff;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.rc-hero-title span {
    color: var(--red-bright);
}

.rc-hero-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
    letter-spacing: 0.02em;
}

.rc-hero img {
    max-width: min(600px, 45vw);
    height: auto;
}

/* ── HERO IMAGE ── */
.rc-hero-image {
    max-width: 720px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.rc-hero-image img {
    width: 100%;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.rc-hero-glow {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/fx/hero-glow-corner-red.png') top right / cover no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* ── CONTENT AREA ── */
.rc-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.rc-description {
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: var(--fs-body);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.rc-build-note {
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: var(--fs-mono);
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
}

/* ── DISCIPLINE LIST ── */
.rc-disciplines {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rc-discipline p {
    margin: 0;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
}

.rc-discipline strong {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

/* ── SECTION HEADINGS (for subpages) ── */
.rc-section-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: var(--fs-tag);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red-bright);
    opacity: 0.7;
}

.rc-section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: var(--fs-section);
    font-weight: 700;
    color: #fff;
    margin-top: 0.25rem;
}

/* ── SOFTWARE ICONS (for subpages) ── */
.rc-software-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    padding: 0.5rem;
    margin-top: -3.6rem;
    margin-bottom: 3rem;
}

.rc-software-icons img {
    height: 3.0rem;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.rc-software-icons img:hover {
    opacity: 1;
}

.rc-software-icons .icon-unreal {
    height: 7rem;
    opacity: 0.9;
}

.rc-software-icons .icon-ni {
    height: 2rem;
}

/* ── DIVIDER ── */
.rc-divider {
    width: 60px;
    height: 2px;
    background: var(--red-bright);
    margin: 1.5rem auto;
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE: Stack columns on mobile ── */
@media (max-width: 1024px) {
    
    .rc-hero {
        padding-top: 6rem;
        padding-bottom: 1rem;
    }
    
    .rc-content {
        max-width: 100%;
    }

    /* Restack two-column grids: images on top */
    .rc-content > div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 1.5rem !important;
    }

    /* Remove sticky on mobile */
    .rc-content > div[style*="grid-template-columns"] > div[style*="sticky"] {
        position: relative !important;
        top: auto !important;
    }

    /* Scale down hero logo */
    .rc-hero img {
        max-width: 45vw;
        height: auto;
    }

    /* Scale down software icons */
    .rc-software-icons {
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: -1.5rem;
        margin-bottom: 2rem;
    }

    .rc-software-icons img {
        height: 2.5rem !important;
    }

    .rc-software-icons .icon-unreal {
        height: 5rem !important;
        opacity: 0.9;
    }

    .rc-software-icons .icon-ni {
        height: 1.5rem !important;
    }
    
    .mechanics-list {
        font-size: 0.85rem;
    }
}