/* ============================================
   Dynamic Resume - Modern Single-Column Layout
   Based on ResumeLanding.svg Design
   ============================================ */

/* CSS Variables */
:root {
    /* Brand Colors */
    --primary: #3a4b9a;
    --primary-hover: #2d3c7d;
    --primary-light: rgba(58, 75, 154, 0.08);
    --primary-glow: rgba(58, 75, 154, 0.12);
    
    /* Text Colors */
    --text-primary: #1c1c1e;
    --text-secondary: #636366;
    --text-tertiary: #8e8e93;
    --text-inverse: #ffffff;
    
    /* Background Colors */
    --bg-page: #f5f6fa;
    --bg-card: #ffffff;
    --bg-subtle: #f0f1f5;
    --bg-overlay: rgba(28, 28, 30, 0.6);
    
    /* Semantic Colors */
    --error: #e63946;
    --error-bg: rgba(230, 57, 70, 0.08);
    --success: #34c759;
    --success-bg: rgba(52, 199, 89, 0.08);
    
    /* Borders */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    
    /* Shadows */
    --shadow-card: 
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-button: 
        0 2px 8px rgba(58, 75, 154, 0.2);
    --shadow-button-hover: 
        0 4px 16px rgba(58, 75, 154, 0.3);
    --shadow-modal: 
        0 24px 80px rgba(0, 0, 0, 0.2);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    
    /* Container */
    --max-width: 720px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Account for sticky nav */
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
    min-height: 100vh;
}

/* ============================================
   Loading State
   ============================================ */

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: var(--space-lg);
}

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

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

.loading-container p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.skeleton-loader {
    width: 100%;
    max-width: var(--max-width);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.skeleton-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
}

.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--bg-subtle) 25%, rgba(255,255,255,0.5) 50%, var(--bg-subtle) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    margin-bottom: var(--space-md);
}

.skeleton-text {
    height: 16px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--bg-subtle) 25%, rgba(255,255,255,0.5) 50%, var(--bg-subtle) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    margin-bottom: var(--space-sm);
}

.skeleton-text.short {
    width: 60%;
}

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

/* ============================================
   Error State
   ============================================ */

.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-lg);
}

.error-content {
    text-align: center;
    max-width: 400px;
}

.error-content h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.error-content p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.error-actions {
    display: flex;
    justify-content: center;
}

/* ============================================
   Page Wrapper
   ============================================ */

.page-wrapper {
    min-height: 100vh;
    background: var(--bg-page);
}

/* ============================================
   Top Navigation
   ============================================ */

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-lg);
    position: sticky;
    top: 0;
    background: var(--bg-page);
    z-index: 100;
}

.site-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.nav-logo {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    gap: var(--space-xs);
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-contact-btn {
    background: var(--primary);
    color: white !important;
    position: relative;
}

.nav-contact-btn:hover {
    background: var(--primary-hover);
    color: white !important;
}

.nav-contact-btn.showing-email {
    background: var(--success);
}

.nav-contact-btn::after {
    content: 'Click to copy email';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-fast);
}

.nav-contact-btn:hover::after {
    opacity: 1;
}

.nav-contact-btn.showing-email::after {
    content: 'Email copied!';
    background: var(--success);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 700;
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
    padding: var(--space-sm) var(--space-md);
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    gap: var(--space-xs);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-tertiary);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    border-radius: var(--radius-md);
    min-width: 60px;
    position: relative;
    font-size: 11px;
    font-weight: 600;
}

.mobile-nav-item i {
    font-size: 18px;
    transition: all var(--duration-fast) var(--ease-out);
}

.mobile-nav-item span {
    font-size: 11px;
    line-height: 1;
}

.mobile-nav-item:hover,
.mobile-nav-item:active,
.mobile-nav-item.active {
    color: var(--primary);
    background: var(--primary-light);
}

.mobile-nav-item:hover i,
.mobile-nav-item:active i,
.mobile-nav-item.active i {
    transform: scale(1.1);
}

.mobile-nav-contact {
    color: var(--primary) !important;
    background: var(--primary-light) !important;
}

.mobile-nav-contact.showing-email {
    color: var(--success) !important;
    background: var(--success-bg) !important;
}

.mobile-nav-contact.showing-email i {
    color: var(--success) !important;
}

/* Add padding to main content for mobile bottom nav */
@media (max-width: 640px) {
    .main-content {
        padding-bottom: calc(var(--space-2xl) + 80px);
    }
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* ============================================
   Card Base Styles
   ============================================ */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--duration-normal) var(--ease-out);
}

/* Scroll margin for anchor navigation with sticky navbar */
#about,
#experience,
#skills,
#projects {
    scroll-margin-top: 80px;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

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

.card-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-title i {
    color: var(--primary);
    font-size: 16px;
}

.section-tagline {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.section-body {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.badge-locked {
    background: var(--bg-subtle);
    color: var(--text-tertiary);
}

.badge-locked i {
    font-size: 10px;
}

/* Hero Name Row */
.hero-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(52, 199, 89, 0.08);
    color: #15803d;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(52, 199, 89, 0.25);
    position: relative;
}

.verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.verified-icon i {
    font-size: 14px;
}

.verified-label {
    white-space: nowrap;
}

.verified-tooltip {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    margin-top: 6px;
    white-space: nowrap;
    background: #111827;
    color: #f9fafb;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
    transform-origin: top center;
}

.verified-badge:hover .verified-tooltip {
    opacity: 1;
    transform: translate(-50%, 2px);
}

/* Early Adopter Badge - Golden Border Pill */
.early-adopter-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: #3a4b9a;
    color: #fff;
    border: 2px solid #d4af37;
    border-radius: var(--radius-full);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: help;
    position: relative;
    margin-left: 10px;
}

.early-adopter-badge:hover .early-adopter-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Early Adopter Tooltip */
.early-adopter-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 6px 10px;
    background: var(--text-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.early-adopter-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-primary);
}

/* ============================================
   Hero Card
   ============================================ */

.hero-card,
.hero-card-compact {
    padding: var(--space-lg);
}

.hero-top-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.hero-avatar {
    flex-shrink: 0;
}

/* Inline skills in hero */
.hero-skills {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.hero-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hero-skills-list .pill {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.btn-share,
.btn-print {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.btn-share:hover,
.btn-print:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.hero-avatar-placeholder,
.hero-avatar img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

.hero-avatar-placeholder i {
    font-size: 28px;
    color: var(--primary);
    opacity: 0.5;
}

.hero-main {
    flex: 1;
    min-width: 0;
}

.hero-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.hero-headline {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--text-tertiary);
}

.icon-wrap {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    font-size: 11px;
}

.hero-contact {
    flex-shrink: 0;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-spring);
    box-shadow: var(--shadow-button);
}

.btn-contact:hover {
    background: var(--primary-hover);
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--shadow-button-hover);
}

.btn-contact:active {
    transform: translateY(0) scale(0.98);
}

/* ============================================
   Audio Block (Elevator Pitch)
   ============================================ */

.audio-block {
    margin-bottom: var(--space-md);
}

/* Hide default audio controls */
.audio-block audio {
    display: none;
}

/* Custom Audio Player */
.custom-audio-player {
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--border-light);
}

.audio-player-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.audio-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all var(--duration-fast) var(--ease-spring);
    box-shadow: var(--shadow-button);
}

.audio-play-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
    box-shadow: var(--shadow-button-hover);
}

.audio-play-btn:active {
    transform: scale(0.95);
}

.audio-progress-container {
    flex: 1;
    min-width: 0;
}

.audio-progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    cursor: pointer;
    margin-bottom: var(--space-xs);
    transition: height var(--duration-fast);
}

.audio-progress-bar:hover {
    height: 8px;
}

.audio-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.1s linear;
    pointer-events: none;
}

.audio-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity var(--duration-fast);
    pointer-events: none;
}

.audio-progress-bar:hover .audio-progress-handle {
    opacity: 1;
}

.audio-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.audio-time-current {
    color: var(--text-secondary);
    font-weight: 600;
}

.audio-time-separator {
    color: var(--text-tertiary);
}

.audio-time-total {
    color: var(--text-tertiary);
}

.audio-volume-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all var(--duration-fast) var(--ease-out);
}

.audio-volume-btn:hover {
    background: var(--bg-card);
    color: var(--primary);
    border-color: var(--primary);
}

/* Transcript Toggle */
.transcript-toggle-container {
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.btn-transcript-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-transcript-toggle:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-transcript-toggle i {
    font-size: 12px;
}

.transcript {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-light);
    animation: fadeIn var(--duration-normal) var(--ease-out);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transcript::-webkit-scrollbar {
    width: 6px;
}

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

.transcript::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-full);
}

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

/* Mobile Responsive */
@media (max-width: 640px) {
    .audio-player-controls {
        gap: var(--space-sm);
    }
    
    .audio-play-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .audio-volume-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .audio-time {
        font-size: 11px;
    }
    
    .transcript {
        max-height: 160px;
        font-size: 13px;
    }
}

/* ============================================
   Experience & Education Lists
   ============================================ */

.experience-list,
.education-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cert-list,
.award-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.item-row {
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.item-row:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-card);
}

.item-top {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-xs);
}

.item-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.item-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-role {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.item-meta {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.item-company {
    color: var(--text-secondary);
    font-weight: 500;
}

.item-separator {
    color: var(--text-tertiary);
}

.item-duration {
    color: var(--text-tertiary);
    font-weight: 400;
}

.item-meta span {
    color: var(--text-tertiary);
    font-weight: 500;
}

.item-bullets {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: var(--space-sm);
}

.item-bullets ul {
    margin: 0;
    padding-left: var(--space-lg);
}

.item-bullets li {
    margin-bottom: var(--space-xs);
}

.item-description {
    margin-top: var(--space-sm);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.item-description {
    margin-top: var(--space-sm);
}

.item-description .description-bullets {
    margin-top: var(--space-xs);
}

.description-bullets {
    list-style: disc;
    padding-left: 20px;
    margin: var(--space-xs) 0 0 0;
    line-height: 1.6;
}

.description-bullets li {
    margin-bottom: 6px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 4px;
}

.description-bullets li:last-child {
    margin-bottom: 0;
}

.project-description {
    margin-top: var(--space-sm);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Project specific */
/* ============================================
   Projects Section - Refined
   ============================================ */

.project-item {
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
    margin-bottom: var(--space-sm);
}

.project-item:last-child {
    margin-bottom: 0;
}

.project-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-card);
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.project-title-group {
    flex: 1;
    min-width: 0;
}

.project-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.project-type-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-type-badge i {
    font-size: 9px;
    opacity: 0.9;
}

.project-link {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--primary);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.project-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-button);
}

.project-link i {
    font-size: 12px;
}

.project-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.tech-pill {
    padding: 5px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

.tech-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: var(--space-sm);
    transition: gap var(--duration-fast) var(--ease-out);
}

.inline-link:hover {
    gap: var(--space-sm);
    text-decoration: underline;
}

.inline-link i {
    font-size: 10px;
}

/* ============================================
   Skills Grid
   ============================================ */

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.skills-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.skills-label {
    flex-shrink: 0;
    width: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    padding-top: var(--space-xs);
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    flex: 1;
}

.pill {
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--duration-fast) var(--ease-spring);
}

.pill:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-button);
}

/* Simple skills list fallback */
.skills-list-simple {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* ============================================
   Links Grid
   ============================================ */

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-sm);
}

.link-chip {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--duration-fast) var(--ease-out);
}

.link-chip:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

.link-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

.link-chip:hover .link-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.link-chip-label {
    font-size: 13px;
    font-weight: 600;
}

/* ============================================
   Recruiter Card
   ============================================ */

.recruiter-card {
    border: 2px dashed var(--border-medium);
    background: var(--bg-card);
}

.recruiter-card.unlocked {
    border-style: solid;
    border-color: var(--success);
}

.recruiter-locked {
    padding: var(--space-xl) 0;
}

.lock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
}

.lock-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    transition: transform var(--duration-normal) var(--ease-spring);
}

.lock-icon i {
    font-size: 24px;
    color: var(--primary);
}

.lock-container:hover .lock-icon {
    transform: scale(1.05);
}

.lock-container p {
    max-width: 280px;
    color: var(--text-secondary);
    font-size: 14px;
}

.btn-unlock {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-spring);
    box-shadow: var(--shadow-button);
}

.btn-unlock:hover {
    background: var(--primary-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-button-hover);
}

.btn-unlock:active {
    transform: translateY(0) scale(0.98);
}

/* Unlocked State */
.recruiter-unlocked {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    animation: fadeSlideIn var(--duration-normal) var(--ease-out);
}

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

.recruiter-section {
    padding: var(--space-md);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
    animation: shimmerReveal 0.5s var(--ease-out);
    animation-fill-mode: both;
}

@keyframes shimmerReveal {
    0% {
        opacity: 0;
        transform: translateX(-8px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.recruiter-section:nth-child(1) { animation-delay: 0s; }
.recruiter-section:nth-child(2) { animation-delay: 0.1s; }
.recruiter-section:nth-child(3) { animation-delay: 0.2s; }

.recruiter-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.recruiter-section h3 i {
    color: var(--primary);
    font-size: 14px;
}

#eq-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.contact-row .icon-wrap {
    background: var(--primary-light);
    color: var(--primary);
}

.contact-row a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.contact-row a:hover {
    text-decoration: underline;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary,
.btn-secondary,
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-spring);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--shadow-button-hover);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: var(--bg-subtle);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--bg-card);
}

.btn-download {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-button);
}

.btn-download:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-button-hover);
}

/* ============================================
   Modal
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-lg);
    animation: modalBgFadeIn var(--duration-normal) var(--ease-out);
}

@keyframes modalBgFadeIn {
    from { 
        opacity: 0; 
        backdrop-filter: blur(0);
    }
    to { 
        opacity: 1; 
        backdrop-filter: blur(8px);
    }
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-modal);
    animation: modalZoomIn var(--duration-normal) var(--ease-spring);
    overflow: hidden;
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.modal-close:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.modal-body {
    padding: var(--space-lg);
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

#password-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all var(--duration-fast) var(--ease-out);
}

#password-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

#password-input::placeholder {
    color: var(--text-tertiary);
}

#password-input.shake {
    animation: shake 0.5s var(--ease-out);
    border-color: var(--error);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.password-error {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--error-bg);
    border-radius: var(--radius-sm);
    color: var(--error);
    font-size: 13px;
    font-weight: 500;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-top: 1px solid var(--border-light);
    background: var(--bg-subtle);
}

/* ============================================
   Footer
   ============================================ */

.resume-footer {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    color: var(--text-tertiary);
    font-size: 13px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.resume-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.resume-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 640px) {
    :root {
        --space-lg: 20px;
        --space-xl: 28px;
    }
    
    .top-nav {
        padding: var(--space-md);
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .main-content {
        padding: 0 var(--space-md) calc(var(--space-xl) + 80px);
        gap: var(--space-md);
    }
    
    .card {
        padding: var(--space-md);
    }
    
    .hero-card,
    .hero-card-compact {
        padding: var(--space-md);
    }
    
    .hero-top-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-meta {
        justify-content: center;
    }
    
    .hero-skills-list {
        justify-content: center;
    }
    
    .hero-contact {
        width: 100%;
    }
    
    .btn-contact {
        width: 100%;
        justify-content: center;
    }
    
    .hero-name {
        font-size: 22px;
    }
    
    .skills-row {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .skills-label {
        width: auto;
    }
    
    .project-item {
        padding: var(--space-md);
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .project-link {
        align-self: flex-end;
    }
    
    .project-title {
        font-size: 15px;
    }
    
    .links-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .item-logo {
        width: 40px;
        height: 40px;
    }
    
    .item-top {
        gap: var(--space-sm);
    }
    
    .modal-content {
        margin: var(--space-md);
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
}

/* ============================================
   Print Styles (ATS-friendly)
   ============================================ */

@media print {
    body {
        background: white;
        font-size: 11pt;
    }
    
    .top-nav,
    .resume-footer,
    .recruiter-card,
    .audio-block,
    .btn-contact,
    .hero-contact {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .page-wrapper {
        background: white;
    }
    
    .modal {
        display: none !important;
    }
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

::selection {
    background: var(--primary);
    color: white;
}

/* ============================================
   Recruiter OTP Login Styles
   ============================================ */

.recruiter-login {
    display: block;
}

.login-container {
    text-align: center;
    padding: var(--space-lg);
}

.login-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #5a6bc4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.login-icon i {
    font-size: 28px;
    color: white;
}

.login-container h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.login-container > p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.input-group {
    margin-bottom: var(--space-md);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--bg-card);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-group input.otp-input {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 8px;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
    text-align: left;
}

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--error-bg);
    color: var(--error);
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.login-error i {
    flex-shrink: 0;
}

.btn-full {
    width: 100%;
}

.otp-actions {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-md);
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--primary);
}

.btn-link:disabled {
    color: var(--text-tertiary);
    cursor: not-allowed;
}

.btn-link i {
    margin-right: 4px;
}

/* Unlocked Header */
.unlocked-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--success-bg);
    color: var(--success);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-logout {
    color: var(--text-tertiary);
}

.btn-logout:hover {
    color: var(--error);
}

/* Badge Variants */
.badge-verified {
    background: var(--success-bg) !important;
    color: var(--success) !important;
}

/* EQ Report Styles */
.eq-candidate-info {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.eq-candidate-info strong {
    color: var(--text-primary);
}

.eq-score-block {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: 12px;
}

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

.eq-score-header > span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.eq-score-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.eq-score-max {
    font-size: 1rem;
    color: var(--text-tertiary);
}

.eq-score-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.eq-score-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.eq-summary {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 10px;
    margin-bottom: var(--space-lg);
}

.eq-summary p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.eq-traits h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.eq-trait {
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 8px;
    margin-bottom: var(--space-sm);
}

.eq-trait-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.eq-trait-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.eq-trait-score {
    font-size: 0.875rem;
    font-weight: 700;
}

.eq-trait-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.eq-trait-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.eq-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: var(--space-md);
    margin-bottom: 0;
}

/* Q&A Section Styles */
.qa-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.qa-item {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.qa-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-subtle);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.qa-question:hover {
    background: #e8e9ed;
}

.qa-question-content {
    display: flex;
    gap: var(--space-sm);
    flex: 1;
}

.qa-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.qa-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.qa-badges {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.qa-audio-badge {
    font-size: 0.75rem;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.qa-chevron {
    color: var(--text-tertiary);
    transition: transform 0.2s;
}

.qa-chevron.rotated {
    transform: rotate(180deg);
}

.qa-answer {
    padding: var(--space-md);
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
}

.qa-audio-player {
    margin-bottom: var(--space-md);
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-play:hover {
    background: rgba(124, 58, 237, 0.2);
}

.audio-duration {
    color: #7c3aed;
    opacity: 0.7;
}

.qa-transcription {
    background: var(--bg-subtle);
    padding: var(--space-md);
    border-radius: 8px;
}

.qa-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qa-transcription p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

/* ============================================
   Scroll Progress Indicator
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s linear;
}

/* ============================================
   Back-to-top Button
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 101;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-hover);
}

@media (max-width: 640px) {
    .back-to-top {
        bottom: calc(80px + var(--space-md));
        right: var(--space-md);
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   Floating Share Button
   ============================================ */

.floating-share-btn {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 101;
    transition: all var(--duration-normal) var(--ease-out);
}

.floating-share-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-button-hover);
}

.floating-share-btn:active {
    transform: translateY(0) scale(0.95);
}

@media (max-width: 640px) {
    .floating-share-btn {
        bottom: calc(80px + var(--space-md));
        right: var(--space-md);
        width: 52px;
        height: 52px;
        font-size: 18px;
    }
}

/* Adjust back-to-top button position when share button is visible */
.back-to-top.visible {
    bottom: calc(var(--space-lg) + 64px);
}

@media (max-width: 640px) {
    .back-to-top.visible {
        bottom: calc(80px + var(--space-md) + 60px);
    }
}

/* ============================================
   Share Modal
   ============================================ */

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-md);
    animation: fadeIn 0.2s ease-out;
}

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

.share-modal {
    background: var(--bg-card);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    animation: slideUp 0.3s ease-out;
}

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

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.share-modal-close {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--duration-fast) var(--ease-out);
}

.share-modal-close:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.share-modal-content {
    padding: var(--space-md);
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Featured PDF Section */
.pdf-featured-section {
    position: relative;
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(58, 75, 154, 0.05) 0%, rgba(220, 20, 60, 0.05) 100%);
    border: 2px solid rgba(58, 75, 154, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.pdf-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #DC143C 100%);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
    box-shadow: 0 2px 8px rgba(58, 75, 154, 0.3);
}

.pdf-featured-badge i {
    font-size: 0.7rem;
    animation: sparkle 2s ease-in-out infinite;
}

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

.share-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
    margin-top: var(--space-md);
    padding: 0 var(--space-xs);
}

.share-section-label:first-of-type {
    margin-top: 0;
}

.share-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    text-align: left;
    margin-bottom: var(--space-xs);
    position: relative;
}

.share-option:hover {
    background: var(--bg-subtle);
    transform: translateX(4px);
}

/* Featured PDF Option */
.share-option-featured {
    background: white;
    border: 2px solid rgba(58, 75, 154, 0.2);
    padding: var(--space-lg);
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(58, 75, 154, 0.1);
}

.share-option-featured:hover {
    background: linear-gradient(135deg, rgba(58, 75, 154, 0.02) 0%, rgba(220, 20, 60, 0.02) 100%);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(58, 75, 154, 0.15);
}

.share-option-featured .share-option-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.share-option-featured .share-option-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.share-option-featured .share-option-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.share-option-hint {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 4px;
    font-style: italic;
}

.share-option-arrow {
    color: var(--primary);
    font-size: 1.125rem;
    opacity: 0.6;
    transition: all var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}

.share-option-featured:hover .share-option-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.share-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    transition: all var(--duration-fast) var(--ease-out);
}

.share-option-icon.linkedin {
    background: #0A66C2;
}

.share-option-icon.x {
    background: #000000;
}

.share-option-icon.whatsapp {
    background: #25D366;
}

.share-option-icon.pdf {
    background: #DC143C;
}

.share-option-icon.pdf-featured {
    background: linear-gradient(135deg, #DC143C 0%, #FF1744 100%);
    position: relative;
}

.share-option-icon.pdf-featured::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), #DC143C);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.share-option-featured:hover .share-option-icon.pdf-featured::after {
    opacity: 1;
}

.share-option-icon.link {
    background: var(--primary);
}

.share-option:hover .share-option-icon {
    transform: scale(1.05);
}

.share-option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.share-option-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.share-option-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.share-divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--space-md) 0;
}

/* ============================================
   Toast Notification
   ============================================ */

.toast {
    position: fixed;
    bottom: calc(var(--space-lg) + 64px);
    right: var(--space-lg);
    background: var(--text-primary);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-modal);
    z-index: 1001;
    display: flex;
    align-items: center;
    animation: slideInRight 0.3s ease-out;
    max-width: 320px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast span {
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 640px) {
    .toast {
        bottom: calc(80px + var(--space-md) + 60px);
        right: var(--space-md);
        left: var(--space-md);
        max-width: none;
        z-index: 102;
    }
    
    /* Share Modal Mobile Styles */
    .pdf-featured-section {
        padding: var(--space-md);
    }
    
    .share-option-featured {
        padding: var(--space-md);
    }
    
    .share-option-featured .share-option-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .share-option-featured .share-option-title {
        font-size: 1rem;
    }
    
    .share-option-featured .share-option-subtitle {
        font-size: 0.8125rem;
    }
    
    .share-option-hint {
        font-size: 0.6875rem;
    }
    
    .share-option-arrow {
        display: none;
    }
}
