/* ============================================
   ROOT VARIABLES
============================================ */

:root {
    --bg: #05060a;
    --bg-alt: #0b0c12;

    --text: #f5f5ff;
    --muted: #9a9ab5;

    --accent: #7c5cff;
    --accent-soft: rgba(124, 92, 255, 0.35);

    --radius: 18px;

    /* BUTTON COLORS */
    --btn-bg: #1a1b27;
    --btn-border: #3b3d55;
    --btn-hover: #5d5fff;
    --btn-glow: rgba(93, 95, 255, 0.55);
}

/* ============================================
   GLOBAL RESET
============================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top, #1a1a2e 0%, transparent 60%),
        radial-gradient(circle at bottom, #050509 0%, #020208 70%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER — PREMIUM, RECOGNOSCIBIL
============================================ */

/* HEADER — FIXED, PREMIUM, RECOGNOSCIBIL */

.rc-header {
    padding: 22px 7vw;
    background: rgba(10, 10, 18, 0.55);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.55);

    display: flex;
    align-items: center;
    justify-content: space-between; /* FIX MAGIC */
}

.rc-brand {
    display: flex;
    flex-direction: column; /* LOGO + TEXT STACKED */
    gap: 4px;
}

.rc-brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rc-logo-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 18px var(--accent-soft), 0 0 6px var(--accent);
}

.rc-header h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.rc-tagline {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    padding-left: 30px; /* ALIGN WITH LOGO */
}

/* NAV BUTTON */

.rc-nav-btn {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s ease;
}

.rc-nav-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}

/* ============================================
   MAIN + GRID
============================================ */

.rc-main {
    flex: 1;
    padding: 20px 7vw 40px;
}

.rc-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #d6d6ff;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

/* ============================================
   CARD BASE — 3D, GLOW, CINEMATIC
============================================ */

.rc-card {
    position: relative;
    padding: 22px 20px 26px;
    border-radius: var(--radius);
    background: rgba(20, 20, 32, 0.75);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;

    transform-style: preserve-3d;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.rc-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(124,92,255,0.5);
    box-shadow:
        0 30px 60px rgba(0,0,0,0.9),
        0 0 25px rgba(124,92,255,0.4);
}

/* ============================================
   CARD HEADER + PILLS
============================================ */

.rc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rc-card h3 {
    margin: 0;
    font-size: 20px;
}

.rc-pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(0,0,0,0.45);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rc-pill-math { color: #00ffbf; border-color: #00ffbf; }
.rc-pill-retro { color: #ff9ff3; border-color: #ff9ff3; }
.rc-pill-productive { color: #00d18f; border-color: #00d18f; }
.rc-pill-arcade { color: #ffb142; border-color: #ffb142; }
.rc-pill-soon { color: #74b9ff; border-color: #74b9ff; }

/* ============================================
   CARD TEXT
============================================ */

.rc-desc {
    margin: 8px 0 14px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.45;
}

.rc-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7f7fa0;
    margin-bottom: 14px;
}

.rc-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

/* ============================================
   BUTTONS — MODERN, NEUTRE, PREMIUM
============================================ */

.rc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 16px;
    border-radius: 999px;

    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: white;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    transition: 0.2s ease;
    box-shadow: 0 0 0 transparent;
}

.rc-btn:hover {
    border-color: var(--btn-hover);
    color: var(--btn-hover);
    box-shadow: 0 0 14px var(--btn-glow);
    transform: translateY(-2px) scale(1.04);
}

.rc-btn-disabled {
    opacity: 0.4;
    cursor: default;
    box-shadow: none;
}

/* ============================================
   THEMES — PROCALCULATE / PERSONAFORGE / NOTES / ARCADE
============================================ */

/* PROCALCULATE */
.rc-math {
    background:
        url("assets/images/procalculate.png") center 25px/120px no-repeat,
        radial-gradient(circle at top, #003326, #000);
    padding-top: 160px;
    border: 1px solid #00ffbf;
    box-shadow: 0 0 25px rgba(0,255,200,0.35);
    position: relative;
}

/* PERSONAFORGE */
.rc-retro {
    background:
        url("assets/images/personaforge.png") center 25px/120px no-repeat,
        linear-gradient(135deg, #ff9ff3 0%, #6c5ce7 100%);
    padding-top: 160px;
    border: 2px solid #ffb8ff;
    box-shadow: 0 0 25px rgba(255,159,243,0.45);
    position: relative;
}

.rc-retro:hover {
    border-color: #ff9ff3 !important; /* roz-violet neon */
    box-shadow:
        0 0 30px #ff9ff3,
        0 0 55px #ff6ce7,
        0 0 80px #ff3cd9;
}


/* NOTESBUDDY */
.rc-notes {
    background: #fff8b3;
    border: 2px solid #ffe66d;
    color: #3a3a00;
    box-shadow: 0 8px 0 #d4c45a, 0 0 25px rgba(255,255,150,0.45);
    transform: rotate(-1.5deg);
}

.rc-notes:hover {
    border-color: #ffdd55 !important;
    box-shadow:
        0 12px 0 #d4c45a,
        0 0 40px #ffdd55,
        0 0 60px #ffe680;
}



.rc-math:hover {
    border-color: #00ffbf !important;
    box-shadow:
        0 0 30px #00ffbf,
        0 0 55px #00ffaa,
        0 0 80px #00ffbf;
}

/* ARCADEGON */
/* ===========================
   ARCADEGON — REAL ARCADE STYLE
   =========================== */

.rc-arcade {
    background: linear-gradient(to bottom, #2b0000, #000);
    border: 3px solid #ffae00;
    border-radius: 16px;

    box-shadow:
        0 0 18px #ffae00,
        0 0 35px #ff7b00,
        inset 0 0 12px #ff4500;

    position: relative;
    padding-top: 160px;

    /* CRT glass */
    overflow: hidden;
}

.rc-arcade,
.rc-arcade:hover {
    border-color: #ffae00 !important;
}


/* CRT scanlines */
.rc-arcade::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.04) 0px,
        rgba(255,255,255,0.04) 2px,
        transparent 2px,
        transparent 4px
    );
    opacity: 0.25;
    pointer-events: none;
}

/* Glow radial */
.rc-arcade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,120,0,0.35), transparent 70%);
    mix-blend-mode: screen;
    pointer-events: none;
}

/* HOVER — CRT POP + ARCADE GLOW */
.rc-arcade:hover {
    transform: translateY(-10px) scale(1.04);

    /* păstrăm border-ul EXACT la fel */
    border-color: #ffae00;

    /* glow arcade intens */
    box-shadow:
        0 0 30px #ffae00,
        0 0 55px #ff7b00,
        0 0 80px #ff4500;
}


/* Scanline pulse */
@keyframes arcadeScanPulse {
    0% { opacity: 0.25; }
    50% { opacity: 0.45; }
    100% { opacity: 0.25; }
}

.rc-arcade:hover::before {
    animation: arcadeScanPulse 0.18s infinite;
}



/* ============================================
   HOVER EFFECTS PER THEME
============================================ */

.rc-math:hover::before {
    animation: mathPulse 1.4s infinite ease-in-out;
}

.rc-retro:hover {
    animation: pixelShake 0.25s steps(2) infinite;
}

.rc-retro:hover::after {
    animation: crtFlicker 0.12s infinite;
}

.rc-notes:hover {
    animation: noteFlip 0.6s ease-in-out;
}

.rc-arcade:hover {
    animation: glitch 0.25s steps(2) infinite;
}

.rc-arcade:hover::before {
    animation: scanPulse 0.18s infinite;
}

/* ============================================
   FOOTER
============================================ */

.rc-footer {
    padding: 14px 7vw 18px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

