/*
Theme Name: UCKLab Future-Proof Master Theme
Theme URI: https://ucdigin.net
Description: McKinsey & HBR style 1-column executive think-tank theme for UCKLab AI Fusion Future Institute. Decoupled 3-Step Navigation Routing (Front-page, Category Archive, Single Journal Monograph). Hyper-realistic 3D Crystal Glassmorphism with High-Contrast Luminous Typography.
Version: 2026.3.6
Author: Dr. Lee Chang-bae (UCKLab)
Author URI: https://ucklab.org
License: Proprietary
Text Domain: ucdigin-future-theme
*/

:root {
    --deep-navy: #070B14;
    --navy-surface: #0F172A;
    --navy-card: rgba(15, 23, 42, 0.82);
    --warm-gold: #D97706;
    --warm-gold-light: #F59E0B;
    --warm-gold-bright: #FBBF24;
    --warm-gold-glow: #FDE047;
    --cyan-accent: #0284C7;
    --cyan-light: #38BDF8;
    --emerald-accent: #059669;
    --emerald-light: #10B981;
    --off-white: #FFFFFF;
    --slate-text-bright: #F1F5F9;
    --slate-text: #E2E8F0;
    --muted-text: #CBD5E1;
    --border-glass: rgba(255, 255, 255, 0.22);
    --border-glass-gold: rgba(245, 158, 11, 0.5);
    --border-glass-cyan: rgba(56, 189, 248, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Noto Sans KR', 'Segoe UI', Roboto, sans-serif;
    color: var(--slate-text-bright);
    background-color: var(--deep-navy);
    line-height: 1.85;
    letter-spacing: -0.015em;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==========================================================================
   GLOBAL HIGH-CONTRAST TYPOGRAPHY SYSTEM (Anti-Dark Text Overrides)
   ========================================================================== */

/* 1. All Headings Default to Crisp High-Contrast White with Shadow */
h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF !important;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    word-break: keep-all;
}

h1 { color: #FFFFFF !important; }
h2 { color: #FFFFFF !important; }
h3 { color: var(--warm-gold-bright) !important; } /* Warm luminous gold */
h4 { color: var(--cyan-light) !important; }      /* Electric cyan */
h5, h6 { color: var(--slate-text-bright) !important; }

/* 2. Global Link Hierarchy - Prevent Visited Purple & Dark Blue */
a {
    color: var(--cyan-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:visited {
    color: var(--cyan-light); /* Enforce high-contrast cyan, never browser purple */
}

a:hover {
    color: var(--warm-gold-bright);
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

/* 3. Article Titles inside Cards */
.timeline-content-pane h2 a,
.timeline-item h2 a,
.feature-card h2 a,
.glass-card-3d h2 a,
.glass-card-3d h3 a,
.glass-card-3d h4 a {
    color: #FFFFFF !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
    transition: all 0.2s ease;
}

.timeline-content-pane h2 a:hover,
.timeline-item h2 a:hover,
.feature-card h2 a:hover,
.glass-card-3d h2 a:hover {
    color: var(--warm-gold-bright) !important;
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

/* 4. WordPress Category Tag Links - Pill Badges */
a[rel="category tag"],
.post-categories a,
.category-badge a {
    display: inline-block;
    background: rgba(245, 158, 11, 0.22) !important;
    color: #FEF08A !important; /* Luminous soft yellow-gold */
    border: 1px solid rgba(245, 158, 11, 0.55) !important;
    padding: 3px 12px !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
}

a[rel="category tag"]:hover {
    background: rgba(245, 158, 11, 0.45) !important;
    color: #FFFFFF !important;
    border-color: #FDE047 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
}

/* 5. Excerpts & Descriptions - Crisp High-Contrast Reading Slate */
.timeline-content-pane .item-excerpt,
.timeline-item p,
.hero-desc,
.card-text {
    color: var(--slate-text-bright) !important;
    font-size: 15px;
    line-height: 1.8;
}

.timeline-content-pane div {
    color: var(--slate-text-bright);
}

.item-meta,
.card-meta {
    color: var(--muted-text) !important;
    font-weight: 600;
}

/* ==========================================================================
   POST CONTENT COMPREHENSIVE OVERRIDES (.ucklab-journal-content)
   Eliminates all dark inline text on dark containers
   ========================================================================== */
.ucklab-journal-content {
    color: var(--slate-text-bright) !important;
    font-size: 17px;
    line-height: 1.95;
}

/* Headings inside post content */
.ucklab-journal-content h1,
.ucklab-journal-content h2,
.ucklab-journal-content h3,
.ucklab-journal-content h4,
.ucklab-journal-content h5,
.ucklab-journal-content h6 {
    color: #FFFFFF !important;
    margin-top: 34px;
    margin-bottom: 16px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.ucklab-journal-content h2 {
    color: #FFFFFF !important;
    border-bottom: 2px solid rgba(245, 158, 11, 0.6) !important;
    padding-bottom: 10px;
    font-size: 24px !important;
    font-weight: 900 !important;
}

.ucklab-journal-content h3 {
    color: var(--warm-gold-bright) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
}

.ucklab-journal-content h4 {
    color: var(--cyan-light) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}

/* Paragraphs & lists inside post content */
.ucklab-journal-content p,
.ucklab-journal-content li {
    color: #F1F5F9 !important;
    font-size: 16.5px;
    line-height: 1.95;
    margin-bottom: 18px;
}

.ucklab-journal-content strong,
.ucklab-journal-content b {
    color: var(--warm-gold-glow) !important; /* Brilliant gold accent for emphasis */
    font-weight: 800;
}

.ucklab-journal-content a {
    color: var(--cyan-light) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ucklab-journal-content a:hover {
    color: var(--warm-gold-bright) !important;
}

/* Convert all light/jarring boxes inside content to 3D dark glass */
.ucklab-journal-content div[style*="background"] {
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(14px) !important;
    color: #F1F5F9 !important;
}

.ucklab-journal-content div[style*="color:#1e293b"],
.ucklab-journal-content div[style*="color: #1e293b"] {
    color: #F1F5F9 !important;
}

.ucklab-journal-content div[style*="color:#0f172a"],
.ucklab-journal-content div[style*="color: #0f172a"] {
    color: #FFFFFF !important;
}

.ucklab-journal-content div[style*="color:#64748b"],
.ucklab-journal-content div[style*="color: #64748b"] {
    color: #CBD5E1 !important;
}

/* ==========================================================================
   SUPPRESS LEGACY DUPLICATE 8,000-WORD CTA & MODAL OVERLAY
   ========================================================================== */
#ucklab-cta-container,
#ucklab-modal-overlay,
div[id="ucklab-cta-container"],
div[id="ucklab-modal-overlay"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   3D CRYSTAL GLASSMORPHISM DESIGN SYSTEM (Reference: media_1790686144281.jpg)
   ========================================================================== */

/* 1. Base 3D Glass Pill Button */
.glass-pill-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 9999px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    color: #FFFFFF !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.65),
        inset 0 -2px 4px 0 rgba(0, 0, 0, 0.3),
        0 8px 24px -4px rgba(0, 0, 0, 0.45),
        0 2px 6px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Crystal glossy highlight arc on upper half */
.glass-pill-btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 8px;
    right: 8px;
    height: 44%;
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.glass-pill-btn:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 
        inset 0 1px 3px 0 rgba(255, 255, 255, 0.85),
        inset 0 -2px 4px 0 rgba(0, 0, 0, 0.35),
        0 14px 32px -4px rgba(0, 0, 0, 0.6),
        0 0 16px rgba(255, 255, 255, 0.25);
    color: #FFFFFF !important;
}

.glass-pill-btn:active {
    transform: translateY(0) scale(0.99);
}

/* 2. Gold / Amber Crystal Button (Matching "Start project" in reference) */
.glass-pill-btn-gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.92) 0%, rgba(217, 119, 6, 0.98) 100%);
    border: 1px solid rgba(254, 215, 170, 0.75);
    color: #FFFFFF !important;
    box-shadow: 
        inset 0 2px 3px 0 rgba(255, 255, 255, 0.75),
        inset 0 -3px 6px 0 rgba(180, 83, 9, 0.7),
        0 12px 32px -4px rgba(217, 119, 6, 0.55),
        0 4px 14px 0 rgba(245, 158, 11, 0.45);
}

.glass-pill-btn-gold::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(254, 215, 170, 0.05) 100%);
}

.glass-pill-btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #FEF3C7;
    box-shadow: 
        inset 0 2px 4px 0 rgba(255, 255, 255, 0.95),
        inset 0 -3px 6px 0 rgba(180, 83, 9, 0.8),
        0 18px 40px -4px rgba(217, 119, 6, 0.7),
        0 0 24px rgba(245, 158, 11, 0.55);
    color: #FFFFFF !important;
}

/* 3. Blue / Cyan Crystal Button (Matching "Secondary" / "Pro plan" in reference) */
.glass-pill-btn-blue {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.88) 0%, rgba(2, 132, 199, 0.96) 100%);
    border: 1px solid rgba(186, 230, 253, 0.75);
    color: #FFFFFF !important;
    box-shadow: 
        inset 0 2px 3px 0 rgba(255, 255, 255, 0.75),
        inset 0 -3px 6px 0 rgba(3, 105, 161, 0.7),
        0 12px 32px -4px rgba(2, 132, 199, 0.55),
        0 4px 14px 0 rgba(56, 189, 248, 0.45);
}

.glass-pill-btn-blue:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #E0F2FE;
    box-shadow: 
        inset 0 2px 4px 0 rgba(255, 255, 255, 0.95),
        inset 0 -3px 6px 0 rgba(3, 105, 161, 0.8),
        0 18px 40px -4px rgba(2, 132, 199, 0.7),
        0 0 24px rgba(56, 189, 248, 0.55);
    color: #FFFFFF !important;
}

/* 4. Small Pill Button Variant */
.glass-pill-btn-small {
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 700;
}

/* 5. 3D Crystal Card Container (Reference: "Card" in media_1790686144281.jpg) */
.glass-card-3d {
    position: relative;
    background: linear-gradient(165deg, rgba(26, 38, 62, 0.78) 0%, rgba(13, 20, 36, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.4),
        0 20px 48px -8px rgba(0, 0, 0, 0.6),
        0 0 1px rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

/* Caustic refractive perimeter highlight */
.glass-card-3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(56, 189, 248, 0.4) 20%, 
        rgba(255, 255, 255, 0.7) 50%, 
        rgba(245, 158, 11, 0.4) 80%, 
        transparent 100%);
    pointer-events: none;
}

.glass-card-3d:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 
        inset 0 1px 3px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.4),
        0 28px 64px -10px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(217, 119, 6, 0.25);
}

/* 6. Gold Accent Glass Card */
.glass-card-gold {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 
        inset 0 1px 2px 0 rgba(254, 215, 170, 0.45),
        0 20px 48px -8px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(217, 119, 6, 0.25);
}

/* ==========================================================================
   NAVIGATION & HEADER STYLING
   ========================================================================== */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: rgba(9, 13, 22, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    color: var(--warm-gold-bright) !important;
    text-decoration: none;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.brand-badge {
    font-size: 11px;
    background: rgba(245, 158, 11, 0.22);
    color: var(--warm-gold-bright) !important;
    border: 1px solid rgba(245, 158, 11, 0.5);
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 800;
}

.nav-menu {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    color: var(--slate-text-bright) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.12);
}

.nav-menu a.active {
    color: var(--warm-gold-bright) !important;
    background: rgba(245, 158, 11, 0.22);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   PAGINATION CONTROLS
   ========================================================================== */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 16px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-numbers:hover {
    background: rgba(245, 158, 11, 0.3);
    border-color: #F59E0B;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.page-numbers.current {
    background: linear-gradient(135deg, #D97706, #F59E0B) !important;
    border-color: #FDE047 !important;
    color: #FFFFFF !important;
    font-weight: 900;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.55);
}

/* ==========================================================================
   RADAR PULSE ANIMATION
   ========================================================================== */
.radar-pulse-dot {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #EF4444;
}

.radar-pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.6);
    animation: radarPulse 1.8s infinite cubic-bezier(0, 0, 0.2, 1);
}

@keyframes radarPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ==========================================================================
   ADMIN MEDIA LIBRARY BADGE
   ========================================================================== */
.admin-media-edit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(16, 185, 129, 0.65);
    color: #A7F3D0 !important;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.admin-media-edit-pill:hover {
    background: rgba(16, 185, 129, 0.4);
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-nav { padding: 14px 20px; flex-direction: column; gap: 12px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
}
