/* ============================================================
   HackTheJD — Campaign OS
   Atmospheric · Interactive · Brand-first
   ============================================================ */

:root {
    --camp-ink: #07111f;
    --camp-navy: #0b1b33;
    --camp-fog: #d7e3f4;
    --camp-mist: #eef3fa;
    --camp-paper: #f7f9fc;
    --camp-blue: #1a6dff;
    --camp-blue-deep: #0d4fd6;
    --camp-cyan: #2ec4b6;
    --camp-amber: #e8a838;
    --camp-rose: #e4572e;
    --camp-line: rgba(7, 17, 31, 0.1);
    --camp-line-strong: rgba(7, 17, 31, 0.18);
    --font-display: "Fraunces", "Times New Roman", serif;
    --font-body: "DM Sans", system-ui, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-soft: 0 20px 50px rgba(7, 17, 31, 0.08);
}

.campaign-shell {
    font-family: var(--font-body);
    color: var(--camp-ink);
    min-height: calc(100vh - 72px);
}

.campaign-shell .camp-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 1.5rem 3rem;
    background:
        radial-gradient(1200px 500px at 15% -10%, rgba(26, 109, 255, 0.22), transparent 55%),
        radial-gradient(900px 420px at 90% 0%, rgba(46, 196, 182, 0.18), transparent 50%),
        linear-gradient(180deg, #f4f7fc 0%, #eef3fa 45%, #f7f9fc 100%);
}

.camp-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, var(--camp-paper));
    pointer-events: none;
}

.camp-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.camp-hero-logo {
    margin-bottom: 1rem;
    animation: campRise 0.9s var(--ease) both;
}

.camp-hero-logo .logo-text {
    font-size: clamp(2rem, 5vw, 2.75rem);
}

.camp-headline {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--camp-ink);
    margin-bottom: 0.85rem;
    animation: campRise 0.9s var(--ease) 0.05s both;
}

.camp-sub {
    max-width: 36rem;
    font-size: 1.08rem;
    line-height: 1.55;
    color: rgba(7, 17, 31, 0.68);
    margin-bottom: 1.5rem;
    animation: campRise 0.9s var(--ease) 0.06s both;
}

.camp-headline em {
    font-style: normal;
    background: linear-gradient(135deg, var(--camp-blue), var(--camp-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.camp-focus-note {
    margin-top: 0.75rem;
    color: rgba(7, 17, 31, 0.5);
    font-size: 0.88rem;
    animation: campRise 0.9s var(--ease) 0.18s both;
}

.camp-focus-note strong {
    color: rgba(7, 17, 31, 0.72);
    font-weight: 600;
}

.camp-lead {
    max-width: 34rem;
    font-size: 1.15rem;
    line-height: 1.55;
    color: rgba(7, 17, 31, 0.72);
    margin-bottom: 1.75rem;
    animation: campRise 0.9s var(--ease) 0.08s both;
}

.camp-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: campRise 0.9s var(--ease) 0.14s both;
}

.camp-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease;
}

.camp-btn:active {
    transform: scale(0.98);
}

.camp-btn-primary {
    background: linear-gradient(135deg, var(--camp-blue), var(--camp-blue-deep));
    color: #fff;
    box-shadow: 0 12px 30px rgba(26, 109, 255, 0.35);
}

.camp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(26, 109, 255, 0.4);
}

.camp-btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--camp-ink);
    border: 1px solid var(--camp-line-strong);
    backdrop-filter: blur(8px);
}

.camp-btn-ghost:hover {
    background: #fff;
}

.camp-entitlements {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    animation: campRise 0.9s var(--ease) 0.2s both;
}

.camp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--camp-line);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(7, 17, 31, 0.75);
}

.camp-chip strong {
    color: var(--camp-blue-deep);
}

.camp-chip.pro {
    background: linear-gradient(135deg, rgba(26, 109, 255, 0.12), rgba(46, 196, 182, 0.12));
    border-color: rgba(26, 109, 255, 0.25);
}

.camp-chip.intel-ready {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #047857;
}

.camp-chip.intel-gathering {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.35);
    color: #b45309;
}

.camp-chip.intel-limited {
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.25);
    color: #4b5563;
}

.camp-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    display: grid;
    gap: 1.5rem;
}

.camp-panel {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--camp-line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.camp-panel-head {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--camp-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.camp-panel-head h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.camp-panel-body {
    padding: 1.5rem;
}

.camp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.camp-form-grid .full {
    grid-column: 1 / -1;
}

.camp-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(7, 17, 31, 0.55);
    margin-bottom: 0.4rem;
}

.camp-field input,
.camp-field select,
.camp-field textarea {
    width: 100%;
    border: 1px solid var(--camp-line-strong);
    background: var(--camp-paper);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font: inherit;
    color: var(--camp-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.camp-field textarea {
    min-height: 140px;
    resize: vertical;
}

.camp-field input:focus,
.camp-field select:focus,
.camp-field textarea:focus {
    outline: none;
    border-color: rgba(26, 109, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(26, 109, 255, 0.12);
}

.camp-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0.5rem;
    background: rgba(7, 17, 31, 0.04);
    border-radius: 16px;
}

.camp-tab {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    font-weight: 650;
    font-size: 0.9rem;
    color: rgba(7, 17, 31, 0.55);
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.camp-tab.active {
    background: #fff;
    color: var(--camp-ink);
    box-shadow: 0 8px 20px rgba(7, 17, 31, 0.08);
}

.camp-tab-panels {
    position: relative;
    min-height: 320px;
}

.camp-tab-panel {
    display: none;
    animation: campFade 0.35s var(--ease);
}

.camp-tab-panel.active {
    display: block;
}

.camp-timeline {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.camp-day {
    position: relative;
    padding: 1rem 1rem 1rem 1.25rem;
    border-left: 3px solid rgba(26, 109, 255, 0.35);
    background: linear-gradient(90deg, rgba(26, 109, 255, 0.05), transparent);
    border-radius: 0 16px 16px 0;
    transition: transform 0.25s var(--ease), border-color 0.25s ease;
}

.camp-day:hover {
    transform: translateX(4px);
    border-left-color: var(--camp-blue);
}

.camp-day h4 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.camp-day ul {
    margin: 0.4rem 0 0 1rem;
    color: rgba(7, 17, 31, 0.7);
    font-size: 0.9rem;
}

.camp-q {
    padding: 1rem 1.1rem;
    border: 1px solid var(--camp-line);
    border-radius: 16px;
    margin-bottom: 0.75rem;
    background: #fff;
    transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.camp-q:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.camp-likelihood {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.45rem;
}

.camp-likelihood.high { background: rgba(46, 196, 182, 0.15); color: #0f766e; }
.camp-likelihood.medium { background: rgba(232, 168, 56, 0.18); color: #92400e; }
.camp-likelihood.stretch { background: rgba(228, 87, 46, 0.14); color: #9a3412; }

.camp-project {
    padding: 1.15rem;
    border-radius: 18px;
    border: 1px solid var(--camp-line);
    background:
        linear-gradient(145deg, rgba(26, 109, 255, 0.06), transparent 40%),
        #fff;
    margin-bottom: 0.85rem;
}

.camp-blur-lock {
    position: relative;
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    opacity: 0.55;
}

.camp-unlock-overlay {
    margin-top: 1rem;
    padding: 1.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(26, 109, 255, 0.1), rgba(46, 196, 182, 0.1));
    border: 1px dashed rgba(26, 109, 255, 0.35);
    text-align: center;
}

.camp-list {
    display: grid;
    gap: 0.75rem;
}

.camp-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 18px;
    border: 1px solid var(--camp-line);
    background: #fff;
    cursor: pointer;
    transition: transform 0.22s var(--ease), box-shadow 0.22s ease, border-color 0.22s ease;
}

.camp-list-item:hover,
.camp-list-item.active {
    transform: translateY(-2px);
    border-color: rgba(26, 109, 255, 0.35);
    box-shadow: var(--shadow-soft);
}

.camp-list-item h3 {
    font-size: 1rem;
    font-weight: 700;
}

.camp-list-item p {
    font-size: 0.85rem;
    color: rgba(7, 17, 31, 0.55);
}

.camp-assist {
    display: grid;
    gap: 0.85rem;
}

.camp-assist-block {
    padding: 1rem;
    border-radius: 16px;
    background: var(--camp-mist);
    border: 1px solid var(--camp-line);
}

.camp-assist-block h4 {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.camp-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: rgba(7, 17, 31, 0.55);
}

.camp-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    background: var(--camp-ink);
    color: #fff;
    padding: 0.9rem 1.15rem;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.35s var(--ease);
    max-width: min(360px, calc(100vw - 2rem));
    font-size: 0.9rem;
}

.camp-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.camp-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--camp-blue-deep);
}

.camp-loading::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(26, 109, 255, 0.25);
    border-top-color: var(--camp-blue);
    animation: campSpin 0.7s linear infinite;
}

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

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

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

@media (max-width: 760px) {
    .camp-form-grid {
        grid-template-columns: 1fr;
    }
    .camp-hero-logo .logo-text {
        font-size: 1.75rem;
    }
    .camp-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Generating + track cards */
.camp-generating {
    text-align: center;
    padding: 3rem 1.5rem;
    animation: campFade 0.5s var(--ease) both;
    background: linear-gradient(145deg, rgba(26, 109, 255, 0.04), rgba(46, 196, 182, 0.04));
    border-radius: 20px;
    border: 1px dashed rgba(26, 109, 255, 0.2);
    margin-top: 0.5rem;
}
.camp-generating.hidden { display: none; }
.camp-generating-pulse {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 3px solid rgba(26, 109, 255, 0.2);
    border-top-color: var(--camp-blue);
    animation: campSpin 0.8s linear infinite;
}
.camp-generating-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}
.camp-generating-sub {
    color: rgba(7, 17, 31, 0.55);
    font-size: 0.9rem;
}
.camp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.camp-day, .camp-q, .camp-track-item, .camp-project {
    animation: campFade 0.45s var(--ease) both;
}
.camp-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}
.camp-chip-link {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: rgba(26, 109, 255, 0.08);
    color: var(--camp-blue-deep);
    font-size: 0.78rem;
    text-decoration: none;
    font-weight: 600;
}
.camp-chip-link:hover { background: rgba(26, 109, 255, 0.14); }
.camp-spoiler {
    margin-top: 0.75rem;
    border-top: 1px solid var(--camp-line);
    padding-top: 0.65rem;
}
.camp-spoiler summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--camp-blue-deep);
    font-size: 0.88rem;
}
.camp-spoiler[open] summary { margin-bottom: 0.5rem; }
.camp-rubric {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    color: rgba(7, 17, 31, 0.65);
    font-size: 0.85rem;
}
.camp-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    align-items: center;
}
.camp-est {
    font-size: 0.75rem;
    color: rgba(7, 17, 31, 0.5);
}
.camp-loop {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}
.camp-loop-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--camp-line);
}
.camp-loop-item h5 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
}
.camp-loop-item p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(7, 17, 31, 0.6);
}
.camp-skill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.camp-skill-pill {
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(7, 17, 31, 0.06);
}
.camp-attr {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(7, 17, 31, 0.45);
}
/* Cut expensive blur on list dense surfaces */
.camp-list-item,
.camp-tab {
    backdrop-filter: none;
}
