/* ================================================
   Squatties Blog — Premium Dark Aesthetic
   ================================================ */

:root {
    --blog-bg: #080a0e;
    --blog-surface: rgba(255, 255, 255, 0.04);
    --blog-border: rgba(255, 255, 255, 0.08);
    --blog-text: rgba(255, 255, 255, 0.88);
    --blog-text-muted: rgba(255, 255, 255, 0.55);
    --blog-accent: #ff6b35;
    --blog-accent-glow: rgba(255, 107, 53, 0.15);
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

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

body {
    background: var(--blog-bg);
    color: var(--blog-text);
    font-family: var(--font-body);
    line-height: 1.7;
    min-height: 100vh;
}


/* ─── Hide dark-mode toggle on intentionally-dark blog pages ─ */
/* Blog/Hype pages are always dark by design; the toggle is meaningless here */
#dark-mode-toggle {
    display: none !important;
}

/* ─── Blog Listing Page ───────────────────────────────────── */


.blog-listing {
    padding: 120px 40px 80px;
    max-width: 1440px;
    margin: 0 auto;
}

.blog-header {
    margin-bottom: 80px;
    border-bottom: 1px solid var(--blog-border);
    padding-bottom: 40px;
}

.blog-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 24px;
}

.blog-header p {
    font-size: 1.15rem;
    color: var(--blog-text-muted);
    max-width: 600px;
    line-height: 1.6;
}

/* ─── Blog Category Filters ──────────────────────────────── */

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    margin-bottom: 48px;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blog-text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--blog-border);
    padding: 8px 20px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.filter-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.filter-btn.active {
    color: #fff;
    background: var(--blog-accent);
    border-color: var(--blog-accent);
    box-shadow: 0 0 20px var(--blog-accent-glow);
}

.filter-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.4);
}

/* ─── Blog Sections ───────────────────────────────────────── */
.blog-section {
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 24px;
    border-left: 4px solid var(--blog-accent);
    padding-left: 16px;
    line-height: 1.1;
}

.announcements-section {
    border-top: 1px solid var(--blog-border);
    padding-top: 48px;
    margin-top: 48px;
}

/* ─── Article Grid ────────────────────────────────────────── */

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.article-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--blog-text);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.card-content {
    display: flex;
    flex-direction: column;
    padding: 32px;
    flex: 1;
}

.card-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--blog-border);
    background: rgba(0, 0, 0, 0.2);
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blog-accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--blog-accent-glow);
}

.article-card:hover::before {
    opacity: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-category {
    background: var(--blog-accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.75rem;
}

.card-meta time {
    color: var(--blog-text-muted);
    font-family: var(--font-body);
}

.article-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #fff;
}

.article-card p {
    font-size: 0.95rem;
    color: var(--blog-text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.card-read-more {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blog-accent);
    transition: letter-spacing 0.3s ease;
}

.article-card:hover .card-read-more {
    letter-spacing: 0.12em;
}

/* ─── Article Page ────────────────────────────────────────── */

.article-page {
    padding: 100px 40px 80px;
    max-width: 780px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 60px;
    border-bottom: 1px solid var(--blog-border);
    padding-bottom: 40px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.article-category {
    background: var(--blog-accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 100px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.8rem;
}

/* Category Specific Colors */
.category-article {
    background: #06b6d4 !important; /* Premium Cyan for Articles */
}
.category-web {
    background: #8b5cf6 !important; /* Deep Neon Purple/Violet for Web */
}
.category-nft {
    background: #ec4899 !important; /* Hot Pink/Neon for NFTs */
}
.category-event {
    background: #f97316 !important; /* Warm Orange for Events */
}
.category-exhibition {
    background: #3b82f6 !important; /* Deep Blue for Exhibitions */
}
.category-print {
    background: #10b981 !important; /* Emerald Green for Print */
}
.category-release {
    background: #00d95a !important; /* Vivid Portal Green for Releases */
}

.article-meta time {
    color: var(--blog-text-muted);
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #fff;
}

/* ─── Article Body ────────────────────────────────────────── */

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 24px;
    color: var(--blog-text);
}

.article-body a {
    color: var(--blog-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    transition: border-color 0.3s ease;
}

.article-body a:hover {
    border-bottom-color: var(--blog-accent);
}

.article-body blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    border-left: 4px solid var(--blog-accent);
    background: rgba(255, 107, 53, 0.06);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.article-body blockquote p {
    margin-bottom: 0;
    font-size: 1.15rem;
    line-height: 1.7;
}

.article-body h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 48px 0 20px;
}

.article-body h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin: 36px 0 16px;
}

/* ─── Article Figures ─────────────────────────────────────── */

.article-figure {
    margin: 40px -40px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--blog-border);
    background: rgba(0, 0, 0, 0.3);
}

.article-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.article-figure figcaption {
    padding: 12px 20px;
    font-size: 0.85rem;
    color: var(--blog-text-muted);
    font-style: italic;
    text-align: center;
}

.article-caption {
    text-align: center;
    color: var(--blog-text-muted);
    font-size: 0.9rem;
    margin-top: -16px;
    margin-bottom: 32px;
}

/* ─── Article Footer ──────────────────────────────────────── */

.article-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--blog-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-back-to-blog,
.btn-back-to-home {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.btn-back-to-blog {
    color: var(--blog-text-muted);
    border: 1px solid var(--blog-border);
}

.btn-back-to-blog:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.btn-back-to-home {
    background: var(--blog-accent);
    color: #fff;
    border: 1px solid var(--blog-accent);
}

.btn-back-to-home:hover {
    background: transparent;
    color: var(--blog-accent);
}

/* ─── Article Galleries (including multi-image lines) ────── */

.article-gallery {
    display: grid;
    gap: 24px;
    margin: 40px -40px;
}

.article-gallery.cols-1 {
    grid-template-columns: 1fr;
}

.article-gallery.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.article-gallery.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.article-gallery.cols-4 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 600px) {
    .article-gallery.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--blog-border);
    background: rgba(0, 0, 0, 0.3);
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-image:hover img {
    transform: scale(1.02);
}

.gallery-caption {
    display: block;
    padding: 10px 16px;
    font-size: 0.8rem;
    color: var(--blog-text-muted);
    font-style: italic;
    text-align: center;
    border-top: 1px solid var(--blog-border);
    background: rgba(0, 0, 0, 0.15);
}

.article-body p img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--blog-border);
    margin: 12px 0;
    vertical-align: middle;
}

/* Hero Banner on Article Pages */
.article-hero {
    margin-top: 32px;
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--blog-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Article Share Section ────────────────────────────── */

.article-share-section {
    margin: 60px auto 20px;
    max-width: 680px;
    border-top: 1px dashed var(--blog-border);
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.share-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blog-accent);
}

.article-share-section .share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.article-share-section .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--blog-text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--blog-border);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
    outline: none;
}

.article-share-section .share-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* Accent borders & shadows on hover */
.article-share-section .share-x:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.article-share-section .share-facebook:hover {
    background: rgba(24, 119, 242, 0.1);
    border-color: rgba(24, 119, 242, 0.5);
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.2);
    color: #1877f2;
}

.article-share-section .share-reddit:hover {
    background: rgba(255, 87, 0, 0.1);
    border-color: rgba(255, 87, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 87, 0, 0.2);
    color: #ff5700;
}

.article-share-section .share-copy:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--blog-accent);
    box-shadow: 0 0 15px var(--blog-accent-glow);
    color: var(--blog-accent);
}

.article-share-section .share-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.article-share-section .share-btn:hover .share-icon {
    transform: scale(1.1);
}

/* Micro-toast Copy Notification */
.article-share-section .copy-toast {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #0f121a;
    border: 1px solid var(--blog-accent);
    color: #fff;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--blog-accent-glow);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

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

/* ─── Article Sibling Navigation ─────────────────────────── */

.article-sibling-nav {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--blog-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sibling-link {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sibling-link.prev {
    align-items: flex-start;
    text-align: left;
}

.sibling-link.next {
    align-items: flex-end;
    text-align: right;
}

.sibling-link:hover {
    border-color: rgba(255, 107, 53, 0.4);
    background: rgba(255, 107, 53, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--blog-accent-glow);
}

.sibling-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blog-accent);
    margin-bottom: 8px;
}

.sibling-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.sibling-spacer {
    pointer-events: none;
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
    .blog-nav {
        padding: 0 20px;
    }

    .blog-listing {
        padding: 100px 20px 60px;
    }

    .blog-header {
        margin-bottom: 48px;
        padding-bottom: 28px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-card {
        padding: 24px;
    }

    .article-page {
        padding: 80px 20px 60px;
    }

    .article-header {
        margin-bottom: 40px;
        padding-bottom: 28px;
    }

    .article-figure {
        margin: 32px -20px;
        border-radius: 12px;
    }

    .article-gallery {
        grid-template-columns: 1fr !important;
        margin: 32px -20px;
        gap: 16px;
    }

    .article-sibling-nav {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
        padding-top: 30px;
    }

    .sibling-spacer {
        display: none;
    }

    .article-hero {
        aspect-ratio: 16 / 9;
        margin-top: 24px;
        border-radius: 12px;
    }

    .article-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 3.5rem;
    }

    .article-header h1 {
        font-size: 2.2rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-card h2 {
        font-size: 1.25rem;
    }
}

/* ─── Related Character/Set Card ──────────────────────────── */

.related-card-container {
    margin: 60px auto 20px;
    max-width: 680px;
    border-top: 1px dashed var(--blog-border);
    padding-top: 40px;
}

.related-section + .related-section {
    margin-top: 40px;
}

.related-cards-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.related-card-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blog-accent);
    margin-bottom: 16px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--blog-border);
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.related-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.4), transparent 40%, rgba(255, 255, 255, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.related-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--blog-accent-glow);
}

.related-card:hover::after {
    opacity: 1;
}

.related-card-face-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #0f121a;
    border: 2px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-card:hover .related-card-face-wrapper {
    border-color: var(--blog-accent);
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.related-card-face {
    position: absolute;
    width: 400%;
    height: 400%;
    left: -100%;
    top: -100%;
}

.related-card-face img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.related-card-info {
    flex: 1;
}

.related-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.related-card-info p {
    font-size: 0.9rem;
    color: var(--blog-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.related-card-cta {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blog-accent);
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.related-card:hover .related-card-cta {
    color: #fff;
    letter-spacing: 0.1em;
}

/* Make it stack nicely on smaller viewports */
@media (max-width: 580px) {
    .related-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    .related-card-face-wrapper {
        width: 70px;
        height: 70px;
        border-radius: 16px;
    }
}

/* ─── Lightbox Dialog ──────────────────────────────────────── */

.lightbox-dialog {
    position: fixed;
    inset: 0;
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: none;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    opacity: 0;
    transition: opacity 0.3s ease, overlay 0.3s ease allow-discrete, display 0.3s ease allow-discrete;
}

.lightbox-dialog[open] {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

@starting-style {
    .lightbox-dialog[open] {
        opacity: 0;
    }
}

.lightbox-dialog::backdrop {
    background: rgba(8, 10, 14, 0);
    backdrop-filter: blur(0px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, overlay 0.3s ease allow-discrete, display 0.3s ease allow-discrete;
}

.lightbox-dialog[open]::backdrop {
    background: rgba(8, 10, 14, 0.95);
    backdrop-filter: blur(15px);
}

@starting-style {
    .lightbox-dialog[open]::backdrop {
        background: rgba(8, 10, 14, 0);
        backdrop-filter: blur(0px);
    }
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 85vh;
    margin: auto;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: zoom-out;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-dialog[open] .lightbox-content img {
    opacity: 1;
    transform: scale(1);
}

@starting-style {
    .lightbox-dialog[open] .lightbox-content img {
        opacity: 0;
        transform: scale(0.95);
    }
}

.lightbox-caption {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--blog-text);
    margin-top: 20px;
    text-align: center;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    max-width: 600px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.lightbox-dialog[open] .lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}

@starting-style {
    .lightbox-dialog[open] .lightbox-caption {
        opacity: 0;
        transform: translateY(10px);
    }
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    outline: none;
    padding-bottom: 4px;
}

.lightbox-close:hover {
    background: var(--blog-accent);
    border-color: var(--blog-accent);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px var(--blog-accent-glow);
}

.lightbox-close:focus-visible {
    border-color: var(--blog-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.4);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 40px;
    line-height: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    outline: none;
    user-select: none;
}

.lightbox-nav.prev {
    left: 24px;
    padding-right: 4px;
}

.lightbox-nav.next {
    right: 24px;
    padding-left: 4px;
}

.lightbox-nav:hover {
    background: var(--blog-accent);
    border-color: var(--blog-accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px var(--blog-accent-glow);
}

.lightbox-nav:focus-visible {
    border-color: var(--blog-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.4);
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 48px;
        height: 48px;
        font-size: 32px;
    }
    .lightbox-nav.prev {
        left: 12px;
    }
    .lightbox-nav.next {
        right: 12px;
    }
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 48px;
        height: 48px;
        font-size: 28px;
    }
}

/* Image trigger cursor & zoom transitions (excluding header hero image) */
.gallery-image img,
.article-body img:not(.related-card img) {
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.article-body img:not(.related-card img):hover {
    filter: brightness(1.05);
}

/* Video styling and lightbox transitions */
.gallery-video-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--blog-border);
    background: rgba(0, 0, 0, 0.3);
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-video-wrapper:hover {
    transform: scale(1.01);
}

.gallery-video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none; /* Let click bubble up to trigger lightbox */
}

/* Subtle overlay indicator on video hover */
.gallery-video-wrapper::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z'/%3E%3C/svg%3E") no-repeat center;
    background-size: 16px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.gallery-video-wrapper:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.article-body video {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--blog-border);
    margin: 12px 0;
    vertical-align: middle;
    cursor: zoom-in;
}

/* Lightbox video specific animations */
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.lightbox-dialog[open] .lightbox-content video {
    opacity: 1;
    transform: scale(1);
}

@starting-style {
    .lightbox-dialog[open] .lightbox-content video {
        opacity: 0;
        transform: scale(0.95);
    }
}



/* ==========================================================================
   TRANSMISSION DOCK (PERSISTENT FOOTER)
   ========================================================================== */

.transmission-dock {
    position: relative;
    width: 100%;
    z-index: 1000;
    font-family: var(--font-body);
    color: white;
    pointer-events: none; /* Let clicks pass through empty space */
    margin-top: 100px; /* Space between main content and dock */
}

.transmission-dock + .site-footer {
    margin-top: 0;
}

/* The collapsable bar */
.dock-bar {
    position: relative;
    z-index: 1;
    height: 72px;
    background: #0f1115;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 107, 53, 0.05) 0%, transparent 70%),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    border-top: 1px solid var(--blog-accent);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-bar:hover {
    height: 76px;
    background-color: #15181e;
}

/* Left side: Icon & Status */
.dock-left {
    display: flex;
    align-items: center;
    gap: 16px;
    width: auto;
    flex-shrink: 0;
}

.dock-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cube-pulse {
    width: 12px;
    height: 12px;
    background: var(--blog-accent);
    transform: rotate(45deg);
    box-shadow: 0 0 10px var(--blog-accent);
    animation: pulseCube 2s infinite ease-in-out;
}

@keyframes pulseCube {
    0% { transform: rotate(45deg) scale(0.8); opacity: 0.5; }
    50% { transform: rotate(45deg) scale(1.1); opacity: 1; box-shadow: 0 0 15px var(--blog-accent); }
    100% { transform: rotate(45deg) scale(0.8); opacity: 0.5; }
}

.dock-status {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--blog-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

.status-title {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: white;
    line-height: 1.2;
}

.dock-subtitle {
    font-size: 0.75rem;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
}

/* Center: Ticker */
.dock-center {
    flex: 1;
    overflow: hidden;
    padding: 0 20px;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    overflow: hidden;
}

.ticker-content-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-label {
    font-size: 0.65rem;
    color: var(--blog-accent);
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    will-change: transform;
}

.ticker-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    padding-right: 32px;
}

@keyframes tickerScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Right: CTA */
.dock-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 250px;
}

.btn-join {
    background: var(--blog-accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.dock-bar:hover .btn-join {
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
    transform: translateY(-1px);
}

/* Expanded Panel */
.transmission-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #111318;
    background-image: 
        radial-gradient(circle at top right, rgba(255, 107, 53, 0.05) 0%, transparent 60%);
    overflow-y: auto;
    overflow-x: hidden;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
    pointer-events: auto;
    border-top: 1px solid transparent;
    z-index: 5;
}

.transmission-dock.expanded {
    z-index: 1100; /* Render above sticky header when expanded */
}

.transmission-dock.expanded .transmission-panel {
    height: 540px;
    max-height: 90vh;
    border-top-color: var(--blog-accent);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.transmission-dock.expanded .dock-bar {
    background-color: #15181e;
}

.panel-content {
    position: relative;
    display: flex;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 48px 40px 24px; /* Extra right padding for scrollbar */
    gap: 60px;
}

/* Panel Left (Text & Minis) */
.panel-left {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    flex-direction: column;
}

.panel-header {
    margin-bottom: 16px;
}

.panel-subtitle {
    font-size: 0.75rem;
    color: var(--blog-accent);
    font-weight: 800;
    letter-spacing: 0.1em;
}

.panel-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-top: 4px;
    line-height: 1.1;
    text-transform: uppercase;
}

.panel-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    max-width: 90%;
    margin-bottom: 30px;
}

.panel-miniatures {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-top: auto;
}

/* Panel Right (Form) */
.panel-right {
    flex: 0 0 70%;
    max-width: 70%;
    position: relative;
}

.panel-close {
    position: absolute;
    top: 20px;
    right: 48px;
    background: transparent;
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: var(--primary);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.panel-close:hover {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

.roster-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--blog-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.roster-form input[type="email"],
.roster-form input[type="text"],
.roster-form textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.roster-form input[type="email"]:focus,
.roster-form input[type="text"]:focus,
.roster-form textarea:focus {
    outline: none;
    border-color: var(--blog-accent);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.roster-form input::placeholder,
.roster-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Chips */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-chips .chip {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.category-chips .chip:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.category-chips .chip.selected {
    background: rgba(255, 107, 53, 0.15);
    border-color: var(--blog-accent);
    color: white;
}

/* Textarea Wrapper */
.textarea-wrapper {
    position: relative;
}

.roster-form textarea {
    width: 100%;
    height: 60px;
    resize: none;
}

.char-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Form Footer */
.form-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.btn-transmit {
    background: var(--blog-accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-transmit:hover {
    background: #ff7e4f;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transform: translateY(-1px);
}

.form-disclaimer-wrapper {
    display: flex;
    gap: 8px;
    flex: 1;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blog-accent);
    margin-top: 5px;
    flex-shrink: 0;
}

.form-disclaimer {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

/* Success State */
.transmission-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.transmission-success h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 16px;
}

.success-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scan-line {
    width: 150px;
    height: 30px;
    background-image: linear-gradient(90deg, transparent, var(--blog-accent), transparent);
    background-size: 200% 100%;
    animation: scanAnim 1.5s linear infinite;
    opacity: 0.5;
}

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

@media (max-width: 1200px) {
    .dock-subtitle {
        display: none;
    }
}

/* Mobile specific */
@media (max-width: 900px) {
    .dock-center, .dock-subtitle {
        display: none;
    }
    
    .dock-left {
        width: auto;
    }

    .transmission-panel {
        position: fixed;
        top: 0;
        bottom: auto;
        left: 0;
        width: 100%;
        z-index: 2000;
    }

    .transmission-dock.expanded .transmission-panel {
        height: 100% !important;
        max-height: 100vh;
        max-height: 100dvh;
    }

    .panel-content {
        flex-direction: column;
        padding: 24px;
        gap: 24px;
        overflow-y: auto;
    }

    .panel-close {
        top: 16px;
        right: 16px;
    }

    .panel-left {
        flex: none;
        max-width: 100%;
        padding-right: 0;
    }
    
    .panel-header h2 {
        font-size: 2rem;
    }

    .panel-miniatures {
        display: flex;
        justify-content: flex-start;
        margin-top: 16px;
    }

    .panel-right {
        flex: none;
        max-width: 100%;
        padding-bottom: 40px;
    }
}
