/*
Theme Name: Aditya VJ Lab Theme
Template: astra
Version: 4.1.0
Description: Electric Lab - UX Enhanced Edition with Research Intelligence visuals and mobile optimizations
*/

/* === CRITICAL: HIDE ASTRA HEADER === */
.site-header, header.site-header, .ast-main-header-wrap, .ast-primary-header-bar, .site-branding, .ast-site-identity, .site-title, #masthead {
    display: none !important; visibility: hidden !important; height: 0 !important; opacity: 0 !important; padding: 0 !important; margin: 0 !important; position: absolute !important; left: -9999px !important;
}
#content, .site-content, #primary, .ast-container { padding-top: 0 !important; margin-top: 0 !important; }

/* === VARIABLES === */
:root {
    --electric-orange: #FF4500;
    --electric-orange-light: rgba(255, 69, 0, 0.1);
    --electric-orange-glow: rgba(255, 69, 0, 0.3);
    --white: #FFFFFF;
    --mist-rose: #FFF5F2;
    --charcoal: #1F2937;
    --soft-grey: #6B7280;
    --light-grey: #9CA3AF;
    --border-light: rgba(0, 0, 0, 0.06);
    --success-green: #22c55e;
    --success-green-light: rgba(34, 197, 94, 0.1);
    --gem-purple: #8B5CF6;
    --gem-purple-light: rgba(139, 92, 246, 0.1);
    --gem-gradient: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(255, 69, 0, 0.05) 100%);
    --research-blue: #2563eb;
    --research-blue-light: rgba(37, 99, 235, 0.1);
    --research-bg: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-orange: 0 8px 30px rgba(255, 69, 0, 0.2);
    --shadow-gem: 0 8px 30px rgba(139, 92, 246, 0.2);
}

/* === GLOBAL === */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--charcoal);
    background: var(--mist-rose);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === TOP NAVIGATION BAR === */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-brand {
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--charcoal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.nav-brand:hover {
    color: var(--electric-orange);
}

.nav-brand .terminal-prompt {
    color: var(--electric-orange);
}

.nav-cursor {
    display: inline-block;
    color: var(--electric-orange);
    font-weight: 800;
    font-size: 1.1em;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

.nav-cursor::after {
    content: "_";
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--soft-grey);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--electric-orange);
    transition: width 0.3s var(--ease-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--charcoal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.nav-cta {
    background: var(--electric-orange);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s var(--ease-smooth);
}

.nav-link.nav-cta::after {
    display: none;
}

.nav-link.nav-cta:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

/* Navigation Social Icons */
.nav-social {
    display: flex;
    align-items: center;
    gap: 24px;
}

.social-icon {
    color: var(--charcoal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
}

.social-icon svg {
    width: 25px;
    height: 25px;
}

.social-icon:hover {
    color: var(--electric-orange);
    transform: scale(1.1);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 12px 20px;
        gap: 16px;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .nav-link.nav-cta {
        padding: 8px 16px;
    }

    .social-icon svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 6px 0;
    }

    .nav-social {
        gap: 20px;
    }
}

.lab-container {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(255, 69, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 85% 20%, rgba(255, 69, 0, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 70%),
        var(--mist-rose);
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    overflow-x: hidden;
}

section { margin-bottom: 80px; }

.hidden { display: none !important; }

/* === ACCESSIBILITY: KEYBOARD FOCUS STATES === */
.btn:focus-visible,
.filter-button:focus-visible,
.resource-card:focus-visible,
.session-card:focus-visible {
    outline: 2px solid var(--electric-orange);
    outline-offset: 2px;
}

/* Special blue focus for research cards */
.resource-card.research-card:focus-visible {
    outline-color: var(--research-blue);
}

/* === TERMINAL HEADER === */
.terminal-header {
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: slideInBlur 0.6s var(--ease-smooth) forwards;
}

.terminal-text { letter-spacing: -0.02em; }
.terminal-prompt { color: var(--electric-orange); }

.cursor {
    display: inline-block;
    color: var(--electric-orange);
    font-weight: 800;
    font-size: 1.1em;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}
.cursor::after { content: "_"; }

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* === TYPOGRAPHY === */
h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--charcoal);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

p { color: var(--soft-grey); }

/* === HERO === */
.lab-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 40px;
    padding: 40px 0 40px 0;
    min-height: 480px;
}

.hero-text {
    flex: 1 1 55%;
    max-width: 600px;
    opacity: 0;
    animation: slideInBlur 0.8s var(--ease-smooth) 0.1s forwards;
}

.hero-name {
    font-size: clamp(2.75rem, 5.5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--charcoal) 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--soft-grey);
    margin-bottom: 16px;
    opacity: 0;
    animation: slideInBlur 0.8s var(--ease-smooth) 0.2s forwards;
}

.hero-tagline strong {
    color: var(--charcoal);
    display: block;
    margin-top: 8px;
    font-weight: 600;
}

.hero-value {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 32px;
    padding-left: 20px;
    border-left: 3px solid var(--electric-orange);
    opacity: 0;
    animation: slideInBlur 0.8s var(--ease-smooth) 0.3s forwards;
}

/* === HERO BLOB === */
.hero-visual {
    flex: 0 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInScale 1s var(--ease-smooth) 0.4s forwards;
}

.flux-blob {
    width: 380px;
    height: 380px;
    position: relative;
    background-image: url('aditya.png');
    background-size: cover;
    background-position: center top 30%;
    border: 3px solid var(--charcoal);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    box-shadow: 
        0 20px 60px rgba(255, 69, 0, 0.15),
        0 0 0 1px rgba(255, 69, 0, 0.1);
    animation: morphBlob 12s ease-in-out infinite;
    transition: transform 0.4s var(--ease-smooth);
}

.flux-blob:hover { transform: scale(1.03) rotate(2deg); }

.flux-blob::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 2px dashed var(--electric-orange);
    border-radius: inherit;
    opacity: 0.4;
    animation: morphBlob 15s ease-in-out infinite reverse, spin 30s linear infinite;
}

.flux-blob::after {
    content: '';
    position: absolute;
    inset: -40px;
    border: 1px dotted rgba(255, 69, 0, 0.2);
    border-radius: inherit;
    animation: morphBlob 18s ease-in-out infinite, spin 45s linear infinite reverse;
}

@keyframes morphBlob {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    25% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 60% 30% 60% / 60% 30% 70% 40%; }
    75% { border-radius: 60% 40% 60% 40% / 50% 60% 40% 50%; }
}

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

/* === BUTTONS === */
.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    opacity: 0;
    animation: slideInBlur 0.8s var(--ease-smooth) 0.4s forwards;
}

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn:hover::before { left: 100%; }

.btn-primary {
    background: var(--electric-orange);
    color: var(--white) !important;
    box-shadow: var(--shadow-orange);
}

/* Optimization: Only apply lift on non-touch devices */
@media (hover: hover) {
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(255, 69, 0, 0.35);
    }
}

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

.btn-outline {
    border: 2px solid rgba(255, 69, 0, 0.25);
    color: var(--electric-orange) !important;
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--electric-orange);
    background: var(--electric-orange-light);
    transform: translateY(-2px);
}

.btn-large { padding: 18px 36px; font-size: 1.05rem; }


/* === STATS BAR === */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 32px 48px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 50px;
    opacity: 0;
    animation: slideInBlur 0.8s var(--ease-smooth) 0.6s forwards;
}

.stat-item { text-align: center; }

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--electric-orange);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--soft-grey);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border-light);
}

/* === SECTION HEADERS === */
.lab-section-header {
    margin-bottom: 32px;
    opacity: 0;
    animation: slideInBlur 0.6s var(--ease-smooth) forwards;
}

.lab-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lab-title::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--electric-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--electric-orange-light);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--electric-orange-light); }
    50% { box-shadow: 0 0 0 8px rgba(255, 69, 0, 0.05); }
}

.section-subtitle {
    color: var(--soft-grey);
    font-size: 1.05rem;
    margin-left: 22px;
}

/* === FILTER SYSTEM === */
.filter-system {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--soft-grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 70px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    background: var(--white);
    color: var(--charcoal);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease-smooth);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.filter-button:hover {
    border-color: var(--electric-orange);
    background: var(--electric-orange-light);
}

/* ENHANCED ACTIVE FILTERS (Glow) */
.filter-button.active {
    background: var(--electric-orange);
    color: var(--white);
    border-color: var(--electric-orange);
    box-shadow: 0 0 0 4px var(--electric-orange-light), 0 8px 20px var(--shadow-orange);
    transform: scale(1.05);
    z-index: 1;
}

.filter-count {
    color: var(--light-grey);
    font-size: 0.85rem;
    margin-left: auto;
    font-weight: 500;
}

/* === CARD GRID === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.grid-wrapper { position: relative; }

/* === FILTERABLE CARDS TRANSITIONS === */
.filterable-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center top;
}

.filterable-card.filtering-out {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.filterable-card.filtering-in {
    animation: cardEntrance 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* === SESSION CARDS === */
.session-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.session-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--electric-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-smooth);
}

.session-card:hover::before { transform: scaleX(1); }

.session-card.featured {
    border-color: rgba(255, 69, 0, 0.2);
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 69, 0, 0.02) 100%);
}

.session-card.featured::after {
    content: '★';
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--electric-orange);
    font-size: 0.9rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.card-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--electric-orange-light);
    color: var(--electric-orange);
}

.card-badge.program {
    background: var(--border-light);
    color: var(--light-grey);
    font-weight: 500;
}

.card-cohort {
    font-size: 0.8rem;
    color: var(--light-grey);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.session-card:hover .card-title { color: var(--electric-orange); }

.card-desc {
    font-size: 0.9rem;
    color: var(--soft-grey);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.card-institution {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--charcoal);
}

/* Institution styling when in card-meta (top of card) */
.card-meta .card-institution {
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.card-action {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--electric-orange);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.session-card:hover .card-action { gap: 8px; }

/* === RESOURCE CARDS (BASE) === */
.resource-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.resource-card.featured {
    border-color: rgba(255, 69, 0, 0.2);
}

.resource-type {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--electric-orange);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.resource-type .icon {
    font-size: 1rem;
}

.resource-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
    line-height: 1.3;
    padding-right: 44px; /* Space for copy button */
}

.resource-card:hover .resource-title { color: var(--electric-orange); }

.resource-desc {
    font-size: 0.9rem;
    color: var(--soft-grey);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 16px;
}

.resource-footer {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--electric-orange);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.resource-card:hover .resource-footer { gap: 8px; }

/* === PROMPT CARDS (WITH COPY BUTTON) === */
.resource-card.prompt-card .card-copy-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--soft-grey);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s var(--ease-smooth);
    z-index: 2;
}

.resource-card.prompt-card .card-copy-btn:hover {
    border-color: var(--electric-orange);
    background: var(--electric-orange-light);
    color: var(--electric-orange);
    transform: scale(1.05);
}

.resource-card.prompt-card .card-copy-btn.copied {
    background: var(--success-green);
    border-color: var(--success-green);
    color: var(--white);
    animation: copySuccess 0.4s var(--ease-elastic);
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
/* === SHARE BUTTON (Top Right of Card) === */
.session-card .card-share-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--light-grey);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s var(--ease-smooth);
    z-index: 5; /* Ensure it sits above the card link */
    opacity: 0; /* Hidden by default until hover */
    transform: translateY(5px);
}

.session-card:hover .card-share-btn {
    opacity: 1;
    transform: translateY(0);
}

/* On mobile, always show it */
@media (max-width: 768px) {
    .session-card .card-share-btn {
        opacity: 1;
        transform: translateY(0);
        background: var(--mist-rose); /* clearer visibility on mobile */
    }
}

.session-card .card-share-btn:hover {
    border-color: var(--electric-orange);
    background: var(--electric-orange);
    color: var(--white);
    transform: scale(1.1) rotate(-10deg);
    box-shadow: var(--shadow-sm);
}
/* === GEM CARDS (DISTINCT LAUNCHABLE TOOL STYLE) === */
.resource-card.gem-card {
    background: var(--gem-gradient);
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.resource-card.gem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gem-purple), var(--electric-orange));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resource-card.gem-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.resource-card.gem-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: var(--shadow-gem);
}

.resource-card.gem-card:hover::before {
    opacity: 1;
}

.resource-card.gem-card:hover::after {
    opacity: 1;
}

.resource-card.gem-card .resource-type {
    color: var(--gem-purple);
}

.resource-card.gem-card .resource-type .icon {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1) rotate(0deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

.resource-card.gem-card:hover .resource-title {
    color: var(--gem-purple);
}

.resource-card.gem-card .resource-footer {
    color: var(--gem-purple);
}

.resource-card.gem-card .launch-indicator {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gem-purple);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s var(--ease-elastic);
}

.resource-card.gem-card:hover .launch-indicator {
    opacity: 1;
    transform: scale(1);
}

/* === ENHANCED CARD HOVER DEPTH (Mobile Optimized) === */
@media (hover: hover) {
    .session-card:hover, .resource-card:hover {
        transform: translateY(-8px) scale(1.01); /* Deeper lift */
        box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04); /* Premium soft shadow */
        border-color: rgba(255, 69, 0, 0.3); /* Subtle border highlight */
    }
    
    .resource-card.gem-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

/* === WORKFLOW CARDS === */
.workflow-card {
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 69, 0, 0.03) 100%);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(255, 69, 0, 0.15);
    box-shadow: var(--shadow-sm);
    grid-column: span 2;
}

.workflow-header {
    margin-bottom: 24px;
}

.workflow-type {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--electric-orange);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.workflow-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.workflow-desc {
    font-size: 0.95rem;
    color: var(--soft-grey);
}

.workflow-steps {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.workflow-step {
    flex: 1;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    border: 1px solid var(--border-light);
    transition: all 0.25s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Workflow steps with Gem-like signifier */
.workflow-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gem-purple), var(--electric-orange));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.workflow-step:hover {
    border-color: var(--gem-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.workflow-step:hover::before {
    opacity: 1;
}

.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--white);
    background: var(--electric-orange);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Gem icon indicator on workflow steps */
.step-title::after {
    content: '💎';
    font-size: 0.75rem;
    opacity: 0.6;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--soft-grey);
    line-height: 1.4;
}

.workflow-arrow {
    color: var(--electric-orange);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    opacity: 0.6;
}

/* === SHOW MORE BUTTON === */
.show-more-button {
    display: block;
    margin: 32px auto 0;
    padding: 12px 28px;
    background: var(--white);
    color: var(--electric-orange);
    border: 2px solid var(--electric-orange);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    font-family: 'Inter', sans-serif;
}

.show-more-button:hover {
    background: var(--electric-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange);
}

/* === CONTEXTUAL BOOKING NUDGE === */
.booking-nudge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    animation: slideInUp 0.5s var(--ease-elastic);
}

.nudge-content {
    background: var(--white);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    max-width: 400px;
}

.nudge-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.nudge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nudge-text strong {
    font-size: 0.95rem;
    color: var(--charcoal);
}

.nudge-text span {
    font-size: 0.85rem;
    color: var(--soft-grey);
}

.nudge-cta {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--electric-orange);
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--electric-orange-light);
    transition: all 0.2s ease;
}

.nudge-cta:hover {
    background: var(--electric-orange);
    color: var(--white);
}

.nudge-dismiss {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--light-grey);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.nudge-dismiss:hover { color: var(--charcoal); }

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

/* === BOOKING SECTION === */
.booking-section {
    margin-top: 100px;
    margin-bottom: 60px;
}

.booking-card {
    background: var(--white);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 60px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.booking-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.06) 0%, transparent 60%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 20px); }
}

.booking-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.booking-eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--electric-orange);
    margin-bottom: 12px;
    display: block;
}

.booking-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.booking-desc {
    font-size: 1.1rem;
    color: var(--soft-grey);
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.6;
}

.booking-options {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.booking-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--charcoal);
    font-weight: 500;
}

.option-icon { font-size: 1.25rem; }

.booking-visual {
    flex: 0 0 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.booking-blob {
    width: 180px;
    height: 180px;
    background: var(--electric-orange);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.15;
    animation: morphBlob 10s ease-in-out infinite;
}

/* === MODAL === */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-container {
    background: var(--white);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s var(--ease-smooth);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 32px 32px 20px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    flex-shrink: 0;
}

.modal-meta { margin-bottom: 8px; }

.modal-type {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--electric-orange);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    padding-right: 40px;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--light-grey);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

/* === MODAL BODY - FIXED SCROLLING === */
.modal-body {
    padding: 24px 32px;
    overflow-y: auto;
    flex: 1;
    min-height: 0; /* Important for flex scroll */
}

/* Custom Scrollbar for Prompt Container (Optimization) */
.prompt-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.prompt-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.02);
    border-radius: 4px;
}

.prompt-container::-webkit-scrollbar-thumb {
    background: var(--light-grey);
    border-radius: 4px;
}

.prompt-container::-webkit-scrollbar-thumb:hover {
    background: var(--soft-grey);
}

.modal-body .prompt-container {
    background: var(--mist-rose);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.modal-body .prompt-container pre {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--charcoal);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

.modal-body .gem-description {
    font-size: 1.05rem;
    color: var(--soft-grey);
    line-height: 1.7;
}

/* === MODAL FOOTER - STICKY COPY BUTTON === */
.modal-footer {
    padding: 20px 32px 32px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
    background: var(--white);
}

.copy-button {
    background: var(--electric-orange);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s var(--ease-smooth);
    box-shadow: var(--shadow-orange);
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.35);
}

.copy-button .copy-icon {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.copy-button.copied .copy-icon {
    transform: scale(1.2) rotate(360deg);
}

.copy-button.copied {
    background: var(--success-green);
    border-color: var(--success-green);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
    animation: buttonPulse 0.4s var(--ease-elastic);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* === TOAST === */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--charcoal);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s var(--ease-smooth);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: var(--success-green);
}

/* === FOOTER === */
.site-footer {
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-light);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

/* === VISIBILITY STATES === */
.filterable-card.hidden { display: none !important; }
.filterable-card.accordion-hidden { display: none !important; }

/* === ANIMATIONS === */
@keyframes slideInBlur {
    from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

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

/* Stagger animation for cards */
.card-grid > *:nth-child(1) { animation-delay: 0.1s; }
.card-grid > *:nth-child(2) { animation-delay: 0.15s; }
.card-grid > *:nth-child(3) { animation-delay: 0.2s; }
.card-grid > *:nth-child(4) { animation-delay: 0.25s; }
.card-grid > *:nth-child(5) { animation-delay: 0.3s; }
.card-grid > *:nth-child(6) { animation-delay: 0.35s; }

.session-card, .resource-card, .workflow-card {
    opacity: 0;
    animation: slideInBlur 0.5s var(--ease-smooth) forwards;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .workflow-card { grid-column: span 1; }
    .workflow-steps { flex-direction: column; }
    .workflow-arrow { transform: rotate(90deg); align-self: center; }
    
    .booking-card { flex-direction: column; padding: 48px 32px; }
    .booking-visual { display: none; }
}

@media (max-width: 768px) {
    .lab-container { padding: 40px 20px; }
    
    .lab-hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 20px 0 60px;
        min-height: auto;
    }
    
    .hero-visual { order: -1; }
    .flux-blob { width: 280px; height: 280px; }
    
    .hero-value {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--electric-orange);
        padding-top: 16px;
    }
    
    .btn-group { justify-content: center; }
    .social-row { justify-content: center; }
    
    .stats-bar {
        flex-direction: column;
        gap: 24px;
        padding: 28px;
    }
    .stat-divider { width: 60px; height: 1px; }
    
    .filter-group { flex-direction: column; align-items: flex-start; }
    .filter-label { margin-bottom: 4px; }
    
    .card-grid { grid-template-columns: 1fr; }
    
    .booking-nudge { 
        bottom: 16px; 
        right: 16px; 
        left: 16px; 
    }
    .nudge-content {
        flex-wrap: wrap;
        max-width: none;
    }
    
    .section-subtitle { margin-left: 0; margin-top: 8px; }
}

@media (max-width: 480px) {
    .lab-container { padding: 24px 16px; }
    
    .hero-name { font-size: 2.25rem; }
    .flux-blob { width: 220px; height: 220px; }
    
    .btn-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    
    .stats-bar { padding: 24px 20px; }
    .stat-number { font-size: 1.75rem; }
    
    .lab-title { font-size: 1.5rem; }
    
    .session-card, .resource-card { padding: 20px; }
    
    .booking-card { padding: 32px 20px; }
    .booking-title { font-size: 1.75rem; }
    .booking-options { flex-direction: column; gap: 12px; }
    
    .modal-container { width: 95%; max-height: 90vh; }
    .modal-header, .modal-body, .modal-footer { padding-left: 20px; padding-right: 20px; }
    .modal-body .prompt-container { max-height: 40vh; }
}

/* === BOOKING ENHANCEMENT STYLES === */
.stat-cta {
    transition: transform 0.3s var(--ease-smooth);
}

.stat-cta:hover {
    transform: translateY(-2px);
}

.stat-book-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s var(--ease-smooth);
    padding: 8px 16px;
    border-radius: 12px;
}

.stat-book-link:hover {
    background: var(--electric-orange-light);
}

.stat-book-link .stat-number {
    font-size: 2rem;
    margin-bottom: 4px;
}

.stat-book-link .stat-label {
    color: var(--electric-orange);
    font-weight: 600;
}

/* Lab to Booking Bridge Section */
.lab-to-booking-bridge {
    margin: 80px 0;
}

.bridge-card {
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 69, 0, 0.03) 100%);
    border: 2px solid var(--electric-orange-light);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: slideInBlur 0.8s var(--ease-smooth) forwards;
}

.bridge-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.bridge-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--electric-orange);
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 16px;
    background: var(--electric-orange-light);
    border-radius: 20px;
}

.bridge-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.bridge-desc {
    font-size: 1.1rem;
    color: var(--soft-grey);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.bridge-options {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.bridge-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--charcoal);
    font-weight: 500;
    padding: 8px 16px;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.bridge-option:hover {
    border-color: var(--electric-orange);
    background: var(--electric-orange-light);
    transform: translateY(-2px);
}

.bridge-option .option-icon {
    font-size: 1.25rem;
}

/* Sticky Booking Button */
.sticky-book-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--electric-orange);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-orange);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s var(--ease-smooth);
    pointer-events: none;
}

.sticky-book-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.sticky-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 69, 0, 0.4);
}

.sticky-book-icon {
    font-size: 1.1rem;
}

/* In-Card Booking Hints (for session cards) */
.card-booking-hint {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
}

.card-booking-hint span {
    color: var(--soft-grey);
    font-weight: 500;
}

.card-booking-hint a {
    color: var(--electric-orange);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    padding: 4px 12px;
    border-radius: 6px;
}

.card-booking-hint a:hover {
    background: var(--electric-orange-light);
}

/* Responsive Adjustments for booking elements */
@media (max-width: 768px) {
    .bridge-card { padding: 32px 24px; }
    .bridge-title { font-size: 1.5rem; }
    .bridge-options { flex-direction: column; gap: 12px; }
    .bridge-option { justify-content: center; }
    .sticky-book-btn { bottom: 16px; right: 16px; padding: 12px 20px; font-size: 0.85rem; }
    .stat-book-link { padding: 6px 12px; }
    .stat-book-link .stat-number { font-size: 1.5rem; }
    .card-booking-hint { flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 480px) {
    .bridge-card { padding: 24px 20px; }
    .bridge-title { font-size: 1.25rem; }
    .bridge-desc { font-size: 1rem; }
    .sticky-book-btn { padding: 10px 16px; font-size: 0.8rem; }
    .sticky-book-text { display: none; }
    .sticky-book-btn .sticky-book-icon { font-size: 1.3rem; }
}

/* === PLATFORM COMPATIBILITY BADGES === */
.platform-badges {
    display: flex;
    gap: 6px;
    margin: 12px 0 8px 0;
    flex-wrap: wrap;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.platform-badge.gemini {
    background: #8B5CF6;
    color: var(--white);
}

.platform-badge.gemini:hover {
    background: #7C3AED;
    transform: translateY(-1px);
}

.platform-badge.perplexity {
    background: #4B5563;
    color: var(--white);
}

.platform-badge.perplexity:hover {
    background: #374151;
    transform: translateY(-1px);
}

.platform-badge.universal {
    background: #6B7280;
    color: var(--white);
}

.platform-badge.universal:hover {
    background: #4B5563;
    transform: translateY(-1px);
}

/* === RESEARCH CARD VISUAL DIFFERENTIATION === */
.resource-card.research-card {
    border-color: rgba(59, 130, 246, 0.3);
    background: var(--research-bg);
}

.resource-card.research-card .resource-type {
    color: var(--research-blue);
}

/* Only apply deep blue hover on mouse devices */
@media (hover: hover) {
    .resource-card.research-card:hover {
        border-color: var(--research-blue);
        box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
    }
}

/* Fix for Featured + Research conflict */
.resource-card.research-card.featured {
    /* Keep the Blue Research background, override the Orange Featured one */
    background: var(--research-bg);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

/* Ensure the Featured Star still appears but changed to Blue */
.resource-card.research-card.featured::after {
    color: var(--research-blue);
}

/* Workflow card badge spacing */
.workflow-card .platform-badges {
    margin-top: 16px;
    margin-bottom: 0;
}

/* === SHARE VIEW BUTTON === */
.share-view-button {
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--soft-grey);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s var(--ease-smooth);
    box-shadow: var(--shadow-sm);
}

.share-view-button:hover {
    border-color: var(--electric-orange);
    color: var(--electric-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.share-view-button.copied {
    background: var(--success-green-light);
    border-color: var(--success-green);
    color: var(--success-green);
}

.share-view-button .icon {
    font-size: 1rem;
}
/* === UPDATED CARD FOOTER LAYOUT === */
.card-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Style for the new Handout Button */
.handout-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--soft-grey);
    background: var(--mist-rose);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.handout-btn:hover {
    background: var(--white);
    color: var(--electric-orange);
    border-color: var(--electric-orange);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
/* === SHARE BUTTON UPDATES === */
.session-card .card-share-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--soft-grey);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-smooth);
    z-index: 5;
    opacity: 1; /* ALWAYS VISIBLE */
    transform: translateY(0);
}

.session-card .card-share-btn:hover {
    border-color: var(--electric-orange);
    color: var(--electric-orange);
    background: var(--mist-rose);
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

.share-icon-svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Move the Featured Star so it doesn't overlap */
.session-card.featured::after {
    right: 60px; /* Moved left to make room for share button */
    top: 22px;   /* Aligned with button center */
    font-size: 1rem;
}

/* === NEW SHARE MODAL STYLES === */
.share-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 0;
}

.share-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--mist-rose);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--charcoal);
}

.share-option-btn:hover {
    background: var(--white);
    border-color: var(--electric-orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.share-option-icon {
    font-size: 24px;
}

.share-option-label {
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

/* Specific hover colors */
.share-option-btn.whatsapp:hover .share-option-icon { color: #25D366; }
.share-option-btn.gmail:hover .share-option-icon { color: #EA4335; }
.share-option-btn.copy:hover .share-option-icon { color: var(--electric-orange); }