/* ============================================================
   THE B.A.N.G. JUBILEE MICRO-SCOPE
   Futuristic Neon (Gold/Blue) Prophetic UI
   ============================================================
   COLOR LOGIC:
   - Odd Jubilee cycles: Neon RED (#FF4C4C) + White text
   - Even Jubilee cycles: Neon GREEN (#00FF7F) + White text
   - First year tiles: Neon background + Extra glow
   - 49th year Sabbatical: Neon + Double glow
   - Scripture buttons: GOLD neon
   - Resource buttons: BLUE neon
   - All backgrounds: Pure black
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Share+Tech+Mono&display=swap');

:root {
    --neon-green: #00FF7F;
    --neon-red: #FF4C4C;
    --neon-gold: #FFD700;
    --neon-cyan: #00ffdd;
    --neon-blue: #00aaff;
    --bg-dark: #0a0a0a;
    --bg-panel: #111;
}

body {
    background: #000;
    font-family: 'Orbitron', 'Share Tech Mono', monospace;
    color: #d2d2d2;
    padding: 20px;
    letter-spacing: 0.5px;
    min-height: 100vh;
}

.title {
    text-align: center;
    font-size: 28px;
    color: var(--neon-cyan);
    text-shadow: 0 0 14px var(--neon-cyan), 0 0 28px var(--neon-blue);
    margin-bottom: 8px;
}

.copyright {
    text-align: center;
    font-size: 11px;
    color: #666;
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
}

/* ============================================================
   BREADCRUMB NAVIGATION
============================================================ */

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.crumb {
    padding: 6px 14px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 11px;
    color: #888;
    cursor: pointer;
    transition: 0.2s;
}

.crumb.active {
    background: var(--neon-cyan);
    color: #000;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.crumb:hover:not(.active) {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.crumb-separator {
    color: #444;
    align-self: center;
}

/* ============================================================
   GREAT JUBILEE BLOCKS (Top Level)
============================================================ */

.great-jubilee-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 30px;
    flex-wrap: wrap;
}

.great-block {
    padding: 30px 40px;
    text-align: center;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.great-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.great-block-1 {
    background: linear-gradient(135deg, #001a0d 0%, #002a15 100%);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 30px rgba(0,255,127,0.4);
}

.great-block-2 {
    background: linear-gradient(135deg, #1a0505 0%, #2a0a0a 100%);
    border: 2px solid var(--neon-red);
    box-shadow: 0 0 30px rgba(255,76,76,0.4);
}

.great-block:hover {
    transform: scale(1.03);
}

.great-block-1:hover {
    box-shadow: 0 0 50px rgba(0,255,127,0.6);
}

.great-block-2:hover {
    box-shadow: 0 0 50px rgba(255,76,76,0.6);
}

.great-block h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 0 10px currentColor;
}

.great-block-1 h2 { color: var(--neon-green); }
.great-block-2 h2 { color: var(--neon-red); }

.great-block .block-range {
    font-size: 14px;
    color: #ccc;
    margin: 8px 0;
}

.great-block .block-years {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

.great-block .block-label {
    font-size: 10px;
    color: #666;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   LAYER CONTAINERS (Shared)
============================================================ */

.layer-container {
    padding: 20px;
}

.layer-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.layer-title {
    color: var(--neon-cyan);
    font-size: 22px;
    text-shadow: 0 0 10px var(--neon-cyan);
    margin: 0;
}

.back-btn {
    background: #1a1a1a;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    font-size: 12px;
}

.back-btn:hover {
    background: var(--neon-cyan);
    color: #000;
}

.macro-info, .maga-info, .micro-info {
    text-align: center;
    margin-bottom: 20px;
    color: #888;
    font-size: 13px;
}

/* ============================================================
   LAYER 1: LEVI'S MACRO JUBILEE GRID (7×10)
============================================================ */

.macro-jubilee-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    padding: 15px;
    border: 1px solid var(--neon-cyan);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,255,221,0.3);
    background: rgba(0,20,20,0.5);
}

.macro-jubilee-cell {
    padding: 15px 8px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 11px;
    font-weight: bold;
    position: relative;
}

.macro-jubilee-cell:hover {
    transform: scale(1.05);
    z-index: 10;
}

.macro-jubilee-cell .week-label {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}

.macro-jubilee-cell .jub-num {
    display: block;
    font-size: 13px;
}

/* Odd Jubilee - Neon Red box with black background */
.jub-odd {
    background: #000;
    color: var(--neon-red);
    border: 2px solid var(--neon-red);
    box-shadow: 0 0 12px rgba(255,76,76,0.5);
    text-shadow: 0 0 5px var(--neon-red);
}

.jub-odd:hover {
    box-shadow: 0 0 25px rgba(255,76,76,0.8), inset 0 0 20px rgba(255,76,76,0.2);
}

/* Even Jubilee - Neon Green box with black background */
.jub-even {
    background: #000;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 12px rgba(0,255,127,0.5);
    text-shadow: 0 0 5px var(--neon-green);
}

.jub-even:hover {
    box-shadow: 0 0 25px rgba(0,255,127,0.8), inset 0 0 20px rgba(0,255,127,0.2);
}

/* ============================================================
   LAYER 2: MAGA WEEK (500-Year Layer)
============================================================ */

.maga-week-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--neon-gold);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
    background: rgba(20,15,0,0.5);
}

.maga-cycle-cell {
    padding: 20px 15px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: bold;
    background: #000;
}

.maga-cycle-cell:hover {
    transform: scale(1.03);
}

.maga-cycle-cell.jub-odd {
    background: #000;
    color: var(--neon-red);
    border: 2px solid var(--neon-red);
    box-shadow: 0 0 12px rgba(255,76,76,0.5);
}

.maga-cycle-cell.jub-even {
    background: #000;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 12px rgba(0,255,127,0.5);
}

.maga-cycle-cell .cycle-num {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.maga-cycle-cell .cycle-range {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,0.7);
}

.maga-cycle-cell .cycle-years {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

/* Event markers */
.has-event::after {
    content: '★';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 10px;
    color: var(--neon-gold);
    text-shadow: 0 0 5px var(--neon-gold);
}

.maga-cycle-cell.has-event {
    position: relative;
}

/* ============================================================
   LAYER 3: MICRO 49-YEAR GRID
============================================================ */

.micro-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(0,0,0,0.8);
}

.micro-odd .micro-grid {
    border: 1px solid var(--neon-red);
    box-shadow: 0 0 20px rgba(255,76,76,0.3);
}

.micro-even .micro-grid {
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 20px rgba(0,255,127,0.3);
}

.micro-cell {
    padding: 12px 8px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 12px;
    font-weight: bold;
}

.micro-cell:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* ============================================================
   MICRO GRID - ODD JUBILEES (Red theme)
============================================================ */

/* First year for odd jubilees - Green background with extra glow */
.year-first-odd {
    background: var(--neon-green);
    color: #000;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green), 0 0 30px var(--neon-green);
    text-shadow: none;
}

/* Regular years for odd jubilees */
.year-regular-odd {
    background: #000;
    color: var(--neon-red);
    border: 1px solid var(--neon-red);
    box-shadow: 0 0 6px rgba(255,76,76,0.3);
}

.year-regular-odd:hover {
    box-shadow: 0 0 12px rgba(255,76,76,0.6);
}

/* 49th year for odd jubilees - Red background with double glow */
.year-49th-odd {
    background: var(--neon-red);
    color: #fff;
    border: 3px solid var(--neon-red);
    box-shadow: 0 0 20px var(--neon-red), 0 0 40px var(--neon-red);
    text-shadow: none;
}

.year-49th-odd:hover {
    box-shadow: 0 0 30px var(--neon-red), 0 0 60px var(--neon-red);
}

/* ============================================================
   MICRO GRID - EVEN JUBILEES (Green theme)
============================================================ */

/* First year for even jubilees - Green background with extra glow */
.year-first-even {
    background: var(--neon-green);
    color: #000;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green), 0 0 30px var(--neon-green);
    text-shadow: none;
}

/* Regular years for even jubilees */
.year-regular-even {
    background: #000;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 6px rgba(0,255,127,0.3);
}

.year-regular-even:hover {
    box-shadow: 0 0 12px rgba(0,255,127,0.6);
}

/* 49th year for even jubilees - Red background with double glow */
.year-49th-even {
    background: var(--neon-red);
    color: #fff;
    border: 3px solid var(--neon-red);
    box-shadow: 0 0 20px var(--neon-red), 0 0 40px var(--neon-red);
    text-shadow: none;
}

.year-49th-even:hover {
    box-shadow: 0 0 30px var(--neon-red), 0 0 60px var(--neon-red);
}

/* Sabbath years (7th year of each week) - Gold for all */
.year-sabbath {
    background: #000;
    color: var(--neon-gold);
    border: 1px solid var(--neon-gold);
    box-shadow: 0 0 8px rgba(255,215,0,0.4);
}

/* 50th Year Jubilee Section */
.sabbatical-section {
    margin-top: 20px;
    text-align: center;
}

.sabbatical-cell {
    display: inline-block;
    padding: 20px 50px;
    background: #000;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: bold;
    font-size: 14px;
}

.sabbatical-cell:hover {
    transform: scale(1.05);
}

/* 50th year for odd jubilees */
.sabbatical-odd {
    color: var(--neon-red);
    border: 3px solid var(--neon-red);
    box-shadow: 0 0 20px var(--neon-red), 0 0 40px var(--neon-red);
    text-shadow: 0 0 8px var(--neon-red);
}

.sabbatical-odd:hover {
    box-shadow: 0 0 30px var(--neon-red), 0 0 60px var(--neon-red);
}

/* 50th year for even jubilees */
.sabbatical-even {
    color: var(--neon-green);
    border: 3px solid var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
}

.sabbatical-even:hover {
    box-shadow: 0 0 30px var(--neon-green), 0 0 60px var(--neon-green);
}

.sabbatical-label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================================
   LAYER 5: CELESTIAL INTERFACE (Full Screen)
============================================================ */

.celestial-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    padding: 0;
    overflow: hidden;
}

.close-celestial-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 15px var(--neon-blue);
    z-index: 2001;
}

.close-celestial-btn:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 25px var(--neon-blue);
}

.celestial-content {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
}

.celestial-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* ============================================================
   LAYER 6: CALCULATOR 4.0 INTERFACE (Full Screen)
============================================================ */

.calculator-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    padding: 0;
    overflow: hidden;
}

.close-calculator-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 15px var(--neon-blue);
    z-index: 2001;
}

.close-calculator-btn:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 25px var(--neon-blue);
}

.calculator-content {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
}

.calculator-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Calculator popup button styling */
.calculator-btn {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* ============================================================
   UTILITY ANIMATIONS
============================================================ */

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px currentColor; }
    50% { box-shadow: 0 0 30px currentColor; }
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ============================================================
   SCRIPTURE POPUP MODAL
============================================================ */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1500;
}

.scripture-popup {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 25px;
    background: #000;
    border-radius: 16px;
    z-index: 1600;
}

.popup-odd {
    border: 2px solid var(--neon-gold);
    box-shadow: 0 0 30px rgba(255,215,0,0.4), 0 0 60px rgba(255,215,0,0.2);
}

.popup-even {
    border: 2px solid var(--neon-gold);
    box-shadow: 0 0 30px rgba(255,215,0,0.4), 0 0 60px rgba(255,215,0,0.2);
}

.popup-animate {
    animation: popup-slide-up 0.3s ease-out;
}

@keyframes popup-slide-up {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.popup-close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    color: var(--neon-gold);
    text-shadow: 0 0 10px var(--neon-gold);
}

.popup-close-btn:hover {
    transform: scale(1.3);
}

.popup-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.popup-year-title {
    font-size: 28px;
    margin: 0;
    color: var(--neon-gold);
    text-shadow: 0 0 15px var(--neon-gold);
}

.popup-body {
    font-size: 13px;
}

/* ============================================================
   GOLD NEON BUTTONS (Scripture + Audio)
============================================================ */

.gold-section {
    margin-bottom: 20px;
}

.gold-title {
    font-size: 14px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-gold);
    text-shadow: 0 0 8px var(--neon-gold);
}

.scripture-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scripture-btn,
.gold-btn {
    display: block;
    padding: 12px 16px;
    background: #000;
    color: var(--neon-gold);
    border: 2px solid var(--neon-gold);
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 10px rgba(255,215,0,0.3), inset 0 0 5px rgba(255,215,0,0.1);
    text-shadow: 0 0 5px var(--neon-gold);
}

.scripture-btn:hover,
.gold-btn:hover {
    background: var(--neon-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(255,215,0,0.6), 0 0 40px rgba(255,215,0,0.3);
    text-shadow: none;
}

.audio-buttons {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-btn {
    display: block;
    padding: 10px 16px;
    background: #000;
    color: var(--neon-gold);
    border: 2px solid var(--neon-gold);
    border-radius: 8px;
    font-family: inherit;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 10px rgba(255,215,0,0.3);
}

.audio-btn:hover {
    background: var(--neon-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(255,215,0,0.6);
}

/* ============================================================
   BLUE NEON BUTTONS (Additional Resources)
============================================================ */

.resources-section {
    margin: 20px 0;
    border-top: 1px solid #222;
    padding-top: 15px;
}

.resources-toggle {
    background: transparent;
    border: none;
    color: var(--neon-blue);
    font-size: 13px;
    cursor: pointer;
    padding: 10px 0;
    font-family: inherit;
    text-align: left;
    width: 100%;
    transition: 0.2s;
    text-shadow: 0 0 5px var(--neon-blue);
}

.resources-toggle:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue);
}

.toggle-icon {
    margin-right: 10px;
    display: inline-block;
    transition: 0.2s;
}

.additional-resources {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0 0 0;
}

.resource-btn,
.blue-btn {
    display: block;
    padding: 12px 16px;
    background: #000;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 10px rgba(0,170,255,0.3), inset 0 0 5px rgba(0,170,255,0.1);
    text-shadow: 0 0 5px var(--neon-blue);
}

.resource-btn:hover,
.blue-btn:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 20px rgba(0,170,255,0.6), 0 0 40px rgba(0,170,255,0.3);
    text-shadow: none;
}

/* ============================================================
   VIEW CELESTIAL LAYER BUTTON (Full Width Blue)
============================================================ */

.blue-btn-full {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: #000;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 15px rgba(0,170,255,0.4), inset 0 0 10px rgba(0,170,255,0.1);
    text-shadow: 0 0 8px var(--neon-blue);
}

.blue-btn-full:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 30px rgba(0,170,255,0.8);
    text-shadow: none;
}

/* ============================================================
   METADATA SECTION (Minimal)
============================================================ */

.metadata-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.year-metadata-minimal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.meta-label {
    color: #666;
    font-size: 11px;
}

.meta-value {
    color: var(--neon-gold);
    font-weight: bold;
    font-size: 12px;
}

/* ============================================================
   RESPONSIVE DESIGN
============================================================ */

@media (max-width: 768px) {
    .macro-jubilee-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .maga-week-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .micro-grid {
        gap: 4px;
    }
    
    .micro-cell {
        padding: 8px 4px;
        font-size: 10px;
    }
    
    .scripture-popup {
        width: 95%;
        padding: 20px 15px;
    }
    
    .year-metadata-minimal {
        grid-template-columns: 1fr;
    }
}
