/**
 * 🎨 LYNQ PRICING SIDEBAR - 2025 DESIGN SYSTEM
 * Modern glassmorphism with professional light mode aesthetics
 * Matches design-system-light-showcase.html standards
 */

/* ===== DESIGN SYSTEM VARIABLES ===== */
:root {
    /* Primary Colors - Blue (Trust & Intelligence) */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-900: #1e3a8a;
    
    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    
    /* Success - Green */
    --success-500: #10b981;
    --success-600: #059669;
    
    /* Warning - Orange */
    --warning-500: #f59e0b;
    --warning-100: #fef3c7;
    
    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Spacing - 8px Grid System */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 10px 30px rgba(59, 130, 246, 0.3);
    
    /* Animation Timing */
    --timing-fast: 150ms;
    --timing-base: 200ms;
    --timing-slow: 300ms;
    --timing-slower: 600ms;
    
    /* Easing Functions */
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== MODERN SIDEBAR CONTAINER ===== */
.urgency-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: var(--space-6); /* 24px between cards */
}

/* Individual card spacing for clarity */
.timer-seat-combo,
.scarcity-activity-combo,
.trust-signals {
    margin-bottom: 0; /* Rely on flex gap instead */
}

/* ===== TIMER CARD - Modern Glassmorphic Design ===== */
.timer-seat-combo {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--timing-slow) var(--ease-bounce);
}

/* Flowing gradient border on hover */
.timer-seat-combo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity var(--timing-base);
}

.timer-seat-combo:hover::before {
    opacity: 1;
    animation: shimmer 2s ease-in-out infinite;
}

.timer-seat-combo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

@keyframes shimmer {
    0%, 100% { 
        background: linear-gradient(90deg,
            rgba(59, 130, 246, 0) 0%,
            rgba(59, 130, 246, 0.6) 50%,
            rgba(59, 130, 246, 0) 100%);
    }
    50% { left: 100%; }
}

/* Modern Badge Design */
.expiring-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-600);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-4);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Timer Display - Professional Typography */
.timer-display {
    text-align: center;
    margin: var(--space-4) 0;
}

.countdown-timer {
    font-size: 40px;
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -0.025em;
    margin-bottom: var(--space-2);
    line-height: 1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Elegant Progress Bar */
.countdown-progress {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.countdown-fill {
    height: 100%;
    background: var(--gradient-blue);
    border-radius: var(--radius-full);
    transition: width 1s var(--ease-standard);
    position: relative;
}

.countdown-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Seat Information - Icon Badge Style */
.seat-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.seat-info-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.seat-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    flex-shrink: 0;
}

.seat-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.seat-status {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

/* ===== SCARCITY + ACTIVITY CARD ===== */
.scarcity-activity-combo {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: all var(--timing-slow) var(--ease-bounce);
    margin-top: var(--space-6); /* Explicit spacing from timer card */
}

.scarcity-activity-combo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.scarcity-compact {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.scarcity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.scarcity-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.scarcity-icon {
    width: 20px;
    height: 20px;
    color: var(--warning-500);
}

.scarcity-stats {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--warning-500);
    font-weight: 700;
    font-size: 14px;
}

/* Info Button - Subtle Design */
.cohort-info-btn,
.domain-operations-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: all var(--timing-base);
    color: var(--gray-400);
    opacity: 0.8;
}

.cohort-info-btn:hover,
.domain-operations-info-btn:hover {
    color: var(--gray-600);
    opacity: 1;
    transform: scale(1.15);
}

/* Elegant Scarcity Bar */
.scarcity-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.scarcity-fill {
    height: 100%;
    background: var(--gradient-blue);
    border-radius: var(--radius-full);
    transition: width var(--timing-slower) var(--ease-standard);
}

/* ===== ACTIVITY TICKER - Live Updates ===== */
.activity-ticker {
    padding-top: var(--space-4);
}

.activity-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success-500);
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% { 
        opacity: 0.7; 
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

.activity-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--success-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-scroll {
    max-height: 80px;
    overflow: hidden;
    position: relative;
}

.activity-item {
    font-size: 13px;
    color: var(--gray-600);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--gray-100);
    animation: slideUp 0.5s var(--ease-smooth);
}

.activity-item:last-child {
    border-bottom: none;
}

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

/* ===== TRUST SIGNALS CARD ===== */
.trust-signals {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-6); /* Explicit spacing from scarcity card */
}

.social-proof-compact {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.proof-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success-600);
    flex-shrink: 0;
}

.proof-text {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}

.proof-text strong {
    color: var(--success-600);
    font-weight: 700;
}

.security-compact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
}

.security-icon {
    width: 14px;
    height: 14px;
    color: var(--success-500);
}

/* ===== MODAL - Modern Design ===== */
.cohort-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--space-4);
}

.cohort-info-modal.show {
    display: flex;
}

.cohort-info-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    max-width: 500px;
    width: 100%;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: modalSlideIn 0.3s var(--ease-smooth);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cohort-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.cohort-info-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.cohort-info-close {
    background: var(--gray-100);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--timing-base);
    color: var(--gray-600);
}

.cohort-info-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
    transform: scale(1.1);
}

.cohort-info-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-700);
    margin: 0;
}

/* ===== REASSIGNMENT OVERLAY - Modern Design ===== */
.reassignment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.95) 0%,
        rgba(96, 165, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: overlaySlideIn 0.5s var(--ease-smooth);
}

.urgency-sidebar:has(.reassignment-overlay[style*="display: flex"]) {
    max-height: 750px;
    height: auto;
    min-height: 700px;
}

@keyframes overlaySlideIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.reassignment-container {
    color: white;
    text-align: center;
    padding: var(--space-8);
    width: 100%;
}

.reassignment-header {
    margin-bottom: var(--space-6);
}

.reassignment-icon {
    font-size: 36px;
    margin-bottom: var(--space-3);
}

.reassignment-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: var(--space-2);
    line-height: 1.2;
}

.reassignment-subtitle {
    font-size: 15px;
    opacity: 0.95;
    line-height: 1.5;
}

.reassignment-progress {
    margin-top: var(--space-6);
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 0.4;
    transition: opacity var(--timing-slow);
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.step.active .step-number {
    background: white;
    color: var(--primary-600);
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.step-label {
    font-size: 12px;
    font-weight: 500;
}

.reassignment-animation {
    margin: var(--space-6) 0;
}

.seat-transition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

.old-seat {
    font-size: 32px;
    font-weight: 900;
    opacity: 0.6;
    text-decoration: line-through;
}

.transition-arrow {
    font-size: 24px;
    animation: arrowPulse 1s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.new-seat {
    font-size: 48px;
    font-weight: 900;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reassignment-timer {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== SKELETON LOADING ===== */
.skeleton-loading {
    display: none;
}

.sidebar-content.loading .skeleton-loading {
    display: block;
}

.sidebar-content.loading > *:not(.skeleton-loading) {
    display: none;
}

.skeleton {
    background: linear-gradient(90deg,
        var(--gray-200) 25%,
        var(--gray-100) 50%,
        var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-timer-combo,
.skeleton-scarcity-combo,
.skeleton-trust-signals {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.skeleton-header {
    height: 20px;
    width: 60%;
    margin-bottom: var(--space-4);
}

.skeleton-timer {
    height: 48px;
    width: 100%;
    margin-bottom: var(--space-3);
}

.skeleton-bar {
    height: 8px;
    width: 100%;
    margin-bottom: var(--space-3);
}

.skeleton-seat-info {
    height: 40px;
    width: 100%;
}

.skeleton-scarcity-header,
.skeleton-activity-header {
    height: 16px;
    width: 50%;
    margin-bottom: var(--space-3);
}

.skeleton-activity-item {
    height: 28px;
    width: 100%;
    margin-bottom: var(--space-2);
}

.skeleton-social-proof,
.skeleton-security {
    height: 36px;
    width: 100%;
    margin-bottom: var(--space-3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .urgency-sidebar {
        position: static;
        margin-bottom: var(--space-6);
    }
    
    .timer-seat-combo,
    .scarcity-activity-combo,
    .trust-signals {
        padding: var(--space-4);
    }
    
    .countdown-timer {
        font-size: 32px;
    }
    
    .seat-number {
        font-size: 18px;
    }
}

/* ===== UTILITY CLASSES ===== */
.fade-in {
    animation: fadeIn 0.3s var(--ease-smooth);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.3s var(--ease-smooth);
}

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