/* ============================================
   DEADLINE DROP — Main Styles
   Apple/OpenAI-inspired aesthetic
   ============================================ */

/* CSS Variables */
:root {
    /* Base Colors */
    --bg-primary: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F5F5F7;
    
    /* Text Colors */
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-tertiary: #86868B;
    --text-inverse: #FFFFFF;
    
    /* Accent Colors */
    --accent-primary: #007AFF;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Category Colors */
    --color-ml: #EF4444;
    --color-cv: #007AFF;
    --color-nlp: #34C759;
    --color-speech: #FF9500;
    --color-data: #FF3B30;
    --color-medical: #FF2D55;
    --color-graphics: #5AC8FA;
    --color-systems: #8E8E93;
    --color-other: #8E8E93;
    
    /* Status Colors */
    --status-critical: #FF3B30;
    --status-urgent: #FF9500;
    --status-soon: #FFCC00;
    --status-upcoming: #34C759;
    --status-future: #8E8E93;
    --status-passed: #C7C7CC;
    
    /* Timeline */
    --timeline-color: #D1D1D6;
    --timeline-active: #007AFF;
    --node-size: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --max-width: 1400px;
    --card-gap: 24px;
    --card-width: 320px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background - Animated Mesh Gradient with Floating Orbs */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #fafbff 0%, #f5f7fa 50%, #f0f2f5 100%);
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Floating gradient orbs */
.bg-gradient::before,
.bg-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
}

/* Large pink/purple orb - top right */
.bg-gradient::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.4) 0%, rgba(167, 139, 250, 0.3) 50%, transparent 70%);
    top: -200px;
    right: -150px;
    animation: floatOrb1 25s ease-in-out infinite;
}

/* Blue/cyan orb - bottom left */
.bg-gradient::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(59, 130, 246, 0.25) 50%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: floatOrb2 30s ease-in-out infinite;
}

/* Third orb via pseudo element on body */
body::before {
    content: '';
    position: fixed;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.3) 0%, rgba(16, 185, 129, 0.2) 50%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
    animation: floatOrb3 22s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-30px, 40px) scale(1.05);
    }
    50% {
        transform: translate(-60px, 20px) scale(0.95);
    }
    75% {
        transform: translate(-20px, -30px) scale(1.02);
    }
}

@keyframes floatOrb2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -30px) scale(1.08);
    }
    66% {
        transform: translate(20px, 40px) scale(0.92);
    }
}

@keyframes floatOrb3 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        transform: translate(-45%, -55%) scale(1.1);
    }
    50% {
        transform: translate(-55%, -45%) scale(0.9);
    }
    75% {
        transform: translate(-48%, -52%) scale(1.05);
    }
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: relative;
    padding: 70px 24px 40px;
    text-align: center;
    overflow: hidden;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Title with gradient and flair */
.site-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #1a1a2e;
}

/* Stopwatch "o" in Conference */
.letter-stopwatch {
    position: relative;
    display: inline-block;
    width: 0.65em;
    height: 0.65em;
    margin: 0 -0.02em;
    vertical-align: middle;
    background: linear-gradient(180deg, #f8f8f8 0%, #e0e0e0 100%);
    border: 3px solid #1a1a2e;
    border-radius: 50%;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.1),
        0 2px 4px rgba(0,0,0,0.15);
}

/* Stopwatch button on top */
.letter-stopwatch::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #1a1a2e;
    border-radius: 2px;
}

/* Stopwatch hand */
.letter-stopwatch::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    width: 2px;
    height: 35%;
    background: #e74c3c;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 1px;
}


/* Letter with pin on top */
.letter-pin {
    display: inline-block;
    position: relative;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
}

/* Map pin positioned above the "a" */
.letter-pin::before {
    content: '';
    position: absolute;
    top: -0.05em;
    left: 85%;
    transform: translateX(-50%);
    width: 0.32em;
    height: 0.45em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cdefs%3E%3ClinearGradient id='pinGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23FF6B6B'/%3E%3Cstop offset='50%25' style='stop-color:%23EE4444'/%3E%3Cstop offset='100%25' style='stop-color:%23CC2222'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12 0C5.4 0 0 5.4 0 12c0 9 12 24 12 24s12-15 12-24c0-6.6-5.4-12-12-12z' fill='url(%23pinGrad)'/%3E%3Cellipse cx='12' cy='12' rx='5' ry='5' fill='%23fff' opacity='0.95'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 1px 2px rgba(200, 0, 0, 0.4));
    z-index: 1;
}

/* Racing "D" in Deadlines - Checkerboard Pattern */
.letter-racing {
    display: inline-block;
    position: relative;
    font-weight: 900;
    background:
        conic-gradient(
            #1a1a2e 0.25turn,
            #ffffff 0.25turn 0.5turn,
            #1a1a2e 0.5turn 0.75turn,
            #ffffff 0.75turn
        ) top left / 8px 8px repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    font-style: italic;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #ffd93d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Graduation cap before */
.site-subtitle::before {
    content: '';
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,10 95,35 50,60 5,35' fill='%231a1a2e'/%3E%3Cpolygon points='50,10 95,35 50,60 5,35' fill='none' stroke='%23333' stroke-width='2'/%3E%3Crect x='47' y='35' width='6' height='35' fill='%231a1a2e'/%3E%3Cellipse cx='50' cy='70' rx='25' ry='8' fill='none' stroke='%231a1a2e' stroke-width='4'/%3E%3Ccircle cx='85' cy='38' r='4' fill='%23ffd700'/%3E%3Cline x1='85' y1='42' x2='85' y2='65' stroke='%23ffd700' stroke-width='2'/%3E%3Ccircle cx='85' cy='68' r='5' fill='%23ffd700'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Pokeball after */
.site-subtitle::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='48' fill='%23f2f2f2' stroke='%23303030' stroke-width='4'/%3E%3Cpath d='M2 50h96' stroke='%23303030' stroke-width='5'/%3E%3Cpath d='M2 50a48 48 0 0 1 96 0' fill='%23ee1515'/%3E%3Ccircle cx='50' cy='50' r='14' fill='%23f2f2f2' stroke='%23303030' stroke-width='4'/%3E%3Ccircle cx='50' cy='50' r='8' fill='%23f2f2f2' stroke='%23303030' stroke-width='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

@media (max-width: 600px) {
    .header {
        padding: 50px 16px 32px;
    }

    .site-title {
        font-size: 2.2rem;
    }

    .letter-stopwatch {
        border-width: 2px;
    }

    .letter-stopwatch::before {
        top: -6px;
        width: 4px;
        height: 4px;
    }

    .site-subtitle {
        font-size: 0.95rem;
    }
}

/* ============================================
   FILTER BAR - Clean White Background
   ============================================ */

.filter-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.filter-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* GitHub Pill */
.github-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.github-pill:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.github-pill .github-icon {
    width: 16px;
    height: 16px;
}

.github-pill .star-icon {
    width: 12px;
    height: 12px;
    color: #f59e0b;
}

/* Filter group container */
.filter-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    padding: 4px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 18px;
}

/* Sliding Water Droplet Indicator */
.filter-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 60px;
    height: calc(100% - 8px);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.6) 30%,
        rgba(240, 245, 255, 0.4) 60%,
        rgba(255, 255, 255, 0.7) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 1),
        inset 0 -3px 6px rgba(0, 0, 0, 0.08);
    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
    pointer-events: none;
}

/* Glossy highlight on top of droplet */
.filter-indicator::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 12%;
    right: 12%;
    height: 45%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.6) 40%,
        transparent 100%
    );
    border-radius: 50px;
    pointer-events: none;
}

/* Filter Pills */
.filter-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-tertiary);
    background: transparent;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
    z-index: 1;
}

.filter-pill:hover {
    color: var(--text-secondary);
}

.filter-pill.active {
    color: var(--text-primary);
}

.filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot-color, var(--text-tertiary));
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

.filter-pill:hover .filter-dot {
    opacity: 1;
    transform: scale(1.1);
}

.filter-pill.active .filter-dot {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 8px var(--dot-color, var(--text-tertiary));
}

/* Category count badge - hidden */
.filter-count {
    display: none;
}

/* Search container */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 200px;
    padding: 10px 45px 10px 34px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    outline: none;
    transition: all 0.25s ease;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-input:focus {
    width: 220px;
    background: #fff;
    border-color: var(--accent-primary);
    box-shadow:
        0 0 0 3px rgba(0, 122, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 0.8rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.search-input:focus ~ .search-icon {
    color: var(--text-secondary);
}

.search-shortcut {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.55rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-tertiary);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 5px;
    border-radius: 4px;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.search-input:focus + .search-icon + .search-shortcut,
.search-input:not(:placeholder-shown) + .search-icon + .search-shortcut {
    opacity: 0;
}

/* Clear search button */
.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 0.65rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.search-input:not(:placeholder-shown) ~ .search-clear {
    opacity: 1;
    pointer-events: auto;
}

.search-clear:hover {
    background: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

/* No results message */
.no-results {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-results p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .filter-pill {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .search-container {
        width: 100%;
        max-width: 280px;
    }

    .search-input {
        width: 100%;
    }

    .search-input:focus {
        width: 100%;
    }
}

/* ============================================
   TIMELINE CONTAINER
   ============================================ */

.timeline-container {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Timeline SVG - Snake Flow Visualization */
.timeline-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

/* Timeline path - animated via JS */
.timeline-svg .timeline-path {
    /* stroke-dashoffset animated via JavaScript */
}

/* Timeline nodes */
.timeline-svg .timeline-node {
    transform-origin: center;
}

/* First node pulsing ring */
@keyframes node-pulse {
    0% {
        r: 12;
        opacity: 0.5;
    }
    100% {
        r: 24;
        opacity: 0;
    }
}

/* Conference Grid - Using flexbox for order support */
.conference-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 72px;
    position: relative;
    z-index: 2;
    justify-content: center;
}

/* Invisible placeholder to fill incomplete rows for snake pattern */
.conference-grid .grid-placeholder {
    width: var(--card-width);
    height: 0;
    visibility: hidden;
    pointer-events: none;
}

.conference-card {
    flex: 0 0 calc(25% - 30px);
    max-width: 320px;
    min-width: 280px;
}

@media (max-width: 1400px) {
    .conference-card {
        flex: 0 0 calc(33.333% - 28px);
        max-width: 320px;
    }
}

@media (max-width: 1000px) {
    .conference-card {
        flex: 0 0 calc(50% - 20px);
        max-width: 320px;
    }
}

@media (max-width: 680px) {
    .conference-grid {
        max-width: 360px;
        margin: 0 auto;
        gap: 32px 24px;
    }
    .conference-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================
   CONFERENCE CARD - SIMPLE WITH MODAL
   ============================================ */

.conference-card {
    position: relative;
    border-radius: 16px;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
    overflow: hidden; /* Prevent shine from bleeding to other cards */
    opacity: 0; /* Start invisible, JS will trigger animation */
    animation: card-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-play-state: paused; /* Paused until JS sets delay and plays */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.conference-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Shiny/Metallic Foil Effect on Hover - Single sweep */
.conference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    border-radius: 16px;
    z-index: 3;
    pointer-events: none;
    transform: skewX(-20deg);
}

.conference-card:hover::before {
    animation: shinySwipe 0.8s ease-out forwards;
}

@keyframes shinySwipe {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

/* Card animation - delays set via JS based on snake order */
@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Timeline path draw-in animation */
@keyframes timeline-draw {
    from {
        stroke-dashoffset: var(--path-length);
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Timeline node fade-in */
@keyframes node-appear {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-secondary);
}

/* Gradient Zone (Top - Header + Countdown) */
.card-gradient-zone {
    padding: 16px 16px 16px;
    border-radius: 16px 16px 0 0;
}

/* Content Zone (Bottom - White) - FIXED HEIGHT FOR ALIGNMENT */
.card-content-zone {
    padding: 14px 16px 12px;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0,0,0,0.06);
    flex: 1;
}

/* Card Header - Logo left, title+location centered */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.card-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.conf-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-bottom: 2px;
}

.conf-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* Card Deadline Section */
.card-deadline {
    text-align: center;
    padding: 14px 0 4px;
    border-radius: 10px;
    background: transparent;
}

.deadline-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 6px;
    height: 2.8em; /* Fixed height for two lines */
    line-height: 1.4em;
    overflow: hidden;
}

.countdown {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.countdown-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
}

.countdown-unit {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Countdown separator for hrs:min:sec */
.countdown-separator {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-tertiary);
    margin: 0 2px;
}

/* Passed state */
.card-deadline.passed {
    opacity: 0.6;
}

.card-deadline.passed .countdown-value {
    color: var(--status-passed);
}

/* Deadlines List - Scrollable with Timeline */
.card-deadlines-list {
    height: 140px;
    overflow: hidden;
    position: relative;
    padding-right: 4px;
    transition: overflow 0.2s ease;
}

/* Scrollable on hover */
.card-deadlines-list:hover {
    overflow-y: auto;
    padding-right: 12px;
}

/* Custom scrollbar for deadline list */
.card-deadlines-list::-webkit-scrollbar {
    width: 4px;
}

.card-deadlines-list::-webkit-scrollbar-track {
    background: transparent;
}

.card-deadlines-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.deadlines-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

/* Vertical timeline line - through the center of dots */
.deadlines-list::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: linear-gradient(
        180deg,
        var(--status-passed) 0%,
        var(--timeline-color) 30%,
        var(--timeline-color) 100%
    );
    border-radius: 1px;
    z-index: 0;
}

.deadline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 3px 0;
    height: 24px;
    position: relative;
}

.deadline-item.empty {
    visibility: hidden;
}

.deadline-item .status-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 50%;
    z-index: 1;
    position: relative;
    color: var(--text-primary);
}

.deadline-item.passed .deadline-type,
.deadline-item.passed .deadline-date {
    opacity: 0.6;
}

.deadline-item.passed .status-icon {
    color: var(--status-passed);
}

.deadline-item.active {
    font-weight: 500;
    color: var(--text-primary);
}

.deadline-item .deadline-type {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 12px; /* Minimum gap before date */
}

.deadline-item .deadline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    flex-shrink: 0;
    margin-left: auto; /* Push date to right edge */
}

.deadline-item .estimated {
    color: var(--text-tertiary);
    font-style: italic;
}

/* Estimated conference indicator */
.conf-name .estimated-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 500;
    background: rgba(255, 150, 0, 0.15);
    color: #c97706;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: help;
}

/* Approximate date marker with tooltip */
.approx-mark {
    font-style: italic;
    color: var(--status-future);
    cursor: help;
}

/* Tap Hint */
.card-tap-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ============================================
   MODAL - Apple-like Expansion
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

.modal-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-container {
    background: var(--bg-secondary);
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform-origin: center center;
    /* Slower, more visible animation */
    transition: transform 0.6s cubic-bezier(0.34, 1.2, 0.64, 1),
                border-radius 0.6s ease;
}

.modal-overlay.active .modal-container {
    transform: translate(0, 0) scale(1) !important;
    border-radius: 24px;
}

/* Modal Header with Gradient */
.modal-gradient-header {
    position: relative;
    padding: 24px 24px 20px;
    text-align: center;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: var(--text-primary);
    color: white;
}

.modal-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-fullname {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.85;
    margin-bottom: 2px;
}

.modal-location {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.modal-countdown {
    margin-top: 12px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
}

.modal-countdown-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.modal-countdown-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Modal Body */
.modal-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Modal Links Grid */
.modal-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.modal-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modal-link:hover {
    background: var(--text-primary);
    color: white;
}

.modal-link.hidden {
    display: none;
}

.link-icon {
    font-size: 1.1rem;
}

.link-text {
    flex: 1;
}

/* Modal Info Grid */
.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.info-card {
    text-align: center;
    padding: 16px 12px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.info-card-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.info-card-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Modal Deadlines List */
.modal-deadlines-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-deadlines-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    font-size: 0.85rem;
}

.modal-deadlines-list .status-icon {
    font-size: 0.75rem;
}

.modal-deadlines-list .deadline-type {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.modal-deadlines-list .deadline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.modal-deadlines-list li.passed {
    opacity: 0.6;
}

.modal-deadlines-list li.active {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Modal Notes */
.modal-notes-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(251, 191, 36, 0.1);
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.modal-notes-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.modal-notes-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

/* Modal Responsive */
@media (max-width: 600px) {
    .modal-overlay {
        padding: 16px;
    }
    
    .modal-container {
        max-height: 95vh;
        border-radius: 20px;
    }
    
    .modal-links-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .info-card {
        padding: 12px 8px;
    }
    
    .info-card-value {
        font-size: 0.9rem;
    }
}


/* ============================================
   LOADING STATE
   ============================================ */

.loading-state {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    z-index: 9999;
}

.loading-state.hidden {
    display: none !important;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--text-primary);
}

/* ============================================
   MOBILE TIMELINE
   ============================================ */

@media (max-width: 600px) {
    .timeline-container {
        padding-left: 48px;
    }
    
    .timeline-container::before {
        content: '';
        position: absolute;
        left: 38px;
        top: 40px;
        bottom: 80px;
        width: 2px;
        background: linear-gradient(
            to bottom,
            var(--timeline-active) 0%,
            var(--timeline-color) 30%,
            var(--timeline-color) 100%
        );
        border-radius: 1px;
    }
    
    .conference-card {
        margin-left: 0;
    }
    
    .timeline-node {
        border-color: var(--timeline-active);
        background: var(--timeline-active);
    }
    
    .conference-card:first-child .timeline-node {
        width: 16px;
        height: 16px;
        left: -32px;
        box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--timeline-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}
