/* ==========================================================================
   ARC RAIDERS - PATCH NOTES 2.0 (FROZEN TRAIL) STYLES
   High-Contrast Sci-Fi Cyber Tactical Theme
   Optimized for Readability & Visual Clarity
   ========================================================================== */

:root {
    --patch-gold: #ffc107;
    --patch-gold-bright: #ffdb4d;
    --patch-gold-glow: rgba(255, 193, 7, 0.35);
    --patch-ice: #38bdf8;
    --patch-ice-bright: #7dd3fc;
    --patch-ice-glow: rgba(56, 189, 248, 0.35);
    --patch-danger: #f87171;
    --patch-success: #34d399;
    
    /* Surface Colors (Elevated for High Contrast) */
    --patch-bg: #090d16;
    --patch-section-bg: #111827;
    --patch-card-bg: #182234;
    --patch-card-border: rgba(56, 189, 248, 0.22);
    --patch-card-hover-border: rgba(255, 193, 7, 0.5);
    
    /* Text Colors (High Contrast - No Blending!) */
    --patch-text-primary: #ffffff;
    --patch-text-body: #f1f5f9;
    --patch-text-readable: #e2e8f0;
    --patch-text-muted: #cbd5e1;
    --patch-text-subtle: #94a3b8;
}

/* Page Container - REMOVED overflow-x: hidden to allow position: sticky to work! */
.patch-page-wrapper {
    background-color: var(--patch-bg);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 100% 25%, rgba(255, 193, 7, 0.06) 0%, transparent 50%),
        linear-gradient(to bottom, #090d16 0%, #0c121e 100%);
    min-height: 100vh;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--patch-text-body);
}

/* Force High Contrast on Bootstrap utility overrides inside patch notes */
.patch-page-wrapper .text-muted {
    color: var(--patch-text-muted) !important;
}

.patch-page-wrapper .text-secondary {
    color: var(--patch-text-subtle) !important;
}

.patch-page-wrapper p {
    color: var(--patch-text-readable);
    line-height: 1.75;
}

/* Hero Header */
.patch-hero {
    position: relative;
    padding-top: 110px;
    padding-bottom: 60px;
    background-size: cover;
    background-position: center 25%;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    position: relative;
}

.patch-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(9, 13, 22, 0.5) 0%, 
        rgba(9, 13, 22, 0.88) 65%, 
        #090d16 100%
    );
    z-index: 1;
}

.patch-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--patch-ice), var(--patch-gold), transparent);
    z-index: 2;
}

.patch-hero-content {
    position: relative;
    z-index: 2;
}

.patch-tag-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.patch-badge-version {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 6px 14px;
    border-radius: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 15px var(--patch-ice-glow);
    border: 1px solid rgba(56, 189, 248, 0.5);
}

.patch-badge-date {
    background: #151f30;
    color: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.patch-badge-live {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.patch-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #34d399;
    border-radius: 50%;
    animation: patch-pulse 1.8s infinite;
}

@keyframes patch-pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.patch-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 2px 25px rgba(0, 0, 0, 0.9);
}

.patch-title span.glow-ice {
    background: linear-gradient(135deg, #ffffff 25%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.patch-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #f1f5f9;
    max-width: 880px;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Stat Counter Pills */
.patch-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 25px;
    width: 100%;
}

@media (min-width: 768px) {
    .patch-quick-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .patch-quick-stats {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
}

.patch-stat-pill {
    background: #141c2b;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    padding: 13px 15px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.patch-stat-pill:hover {
    transform: translateY(-2px);
    border-color: var(--patch-gold);
    background: #182337;
    box-shadow: 0 4px 18px rgba(255, 193, 7, 0.2);
}

.patch-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--patch-ice-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.patch-stat-info {
    display: flex;
    flex-direction: column;
}

.patch-stat-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.patch-stat-lbl {
    font-size: 0.75rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Sticky Navigation / TOC (Fixed Sticky Behavior!) */
.patch-toc-card {
    position: sticky;
    top: 95px;
    align-self: flex-start;
    background: #101623;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--patch-ice) #101623;
    z-index: 100;
}

.patch-toc-card::-webkit-scrollbar {
    width: 5px;
}
.patch-toc-card::-webkit-scrollbar-thumb {
    background: var(--patch-ice);
    border-radius: 4px;
}

.patch-toc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.patch-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.patch-toc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 6px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.patch-toc-link:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.15);
    border-left-color: var(--patch-ice-bright);
    transform: translateX(4px);
}

.patch-toc-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.22), rgba(255, 193, 7, 0.05));
    border-left-color: var(--patch-gold);
    font-weight: 700;
    box-shadow: inset 1px 0 8px rgba(255, 193, 7, 0.15);
}

.patch-toc-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
}

/* Mobile Quick Nav Bar */
.patch-mobile-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.patch-mobile-nav::-webkit-scrollbar {
    display: none;
}

.patch-mobile-pill {
    flex-shrink: 0;
    background: #141c2b;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.patch-mobile-pill:hover,
.patch-mobile-pill.active {
    background: var(--patch-gold);
    color: #000000;
    border-color: var(--patch-gold);
    font-weight: 700;
}

/* Search Box */
.patch-search-bar {
    position: relative;
    margin-bottom: 25px;
}

.patch-search-input {
    width: 100%;
    background: #101623;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    padding: 14px 20px 14px 48px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.patch-search-input::placeholder {
    color: #94a3b8;
}

.patch-search-input:focus {
    border-color: var(--patch-gold);
    background: #141c2b;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.25);
}

.patch-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--patch-ice-bright);
    font-size: 1.15rem;
    pointer-events: none;
}

/* Content Sections (Elevated & Clear Background) */
.patch-section {
    background: var(--patch-section-bg);
    border: 1px solid var(--patch-card-border);
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.patch-section:hover {
    border-color: var(--patch-card-hover-border);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.55);
}

.patch-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.patch-section-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.patch-section-title i {
    color: var(--patch-gold);
}

.patch-section-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--patch-text-body);
    margin-bottom: 22px;
    font-weight: 400;
}

/* Images & Media Showcase */
.patch-media-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin: 22px 0 26px 0;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: #000000;
    cursor: zoom-in;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.patch-media-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.patch-media-wrapper:hover .patch-media-img {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.patch-media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 18px;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 14, 0.92));
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #ffffff;
}

.patch-media-caption {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.patch-zoom-hint {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
}

/* Highlights Grid */
.patch-highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
}

@media (min-width: 768px) {
    .patch-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.patch-highlight-item {
    background: #151d2c;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.2s ease;
}

.patch-highlight-item:hover {
    background: #1a2538;
    border-color: var(--patch-ice-bright);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
}

.patch-hl-num {
    background: rgba(56, 189, 248, 0.2);
    color: var(--patch-ice-bright);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.88rem;
    flex-shrink: 0;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.patch-hl-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f1f5f9;
}

.patch-hl-text strong {
    color: #ffffff;
    font-weight: 700;
}

/* Bullet Items & Lists */
.patch-bullet-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.patch-bullet-item {
    position: relative;
    padding-left: 28px;
    line-height: 1.7;
    font-size: 0.98rem;
    color: #f1f5f9;
}

.patch-bullet-item strong {
    color: #ffffff;
    font-weight: 700;
}

.patch-bullet-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--patch-ice-bright);
    box-shadow: 0 0 8px var(--patch-ice);
}

.patch-bullet-item.gold::before {
    background: var(--patch-gold-bright);
    box-shadow: 0 0 8px var(--patch-gold);
}

.patch-bullet-item.danger::before {
    background: var(--patch-danger);
    box-shadow: 0 0 8px var(--patch-danger);
}

/* Sub-category Cards inside Content & Fixes */
.patch-subgroup {
    background: #141b28;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.patch-subgroup-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.patch-subgroup-title .subgroup-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 193, 7, 0.15);
    color: var(--patch-gold-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Dedicated High-Contrast Feature Cards (Twitch, Enemies, Pass) */
.patch-card-feature {
    background: #162032;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    padding: 18px;
    height: 100%;
    transition: all 0.25s ease;
}

.patch-card-feature:hover {
    background: #1b273d;
    border-color: var(--patch-ice-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15);
}

.patch-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.patch-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0 !important;
    margin: 0;
}

/* Specific Enemy Cards with High Visibility */
.patch-enemy-card {
    border-radius: 10px;
    padding: 18px;
    height: 100%;
    background: #151d2c;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.25s ease;
}

.patch-enemy-card.enemy-bully {
    border-color: rgba(248, 113, 113, 0.5);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.12) 0%, #151d2c 100%);
}
.patch-enemy-card.enemy-bully:hover {
    border-color: #f87171;
    box-shadow: 0 6px 20px rgba(248, 113, 113, 0.2);
}

.patch-enemy-card.enemy-skulker {
    border-color: rgba(251, 191, 36, 0.5);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, #151d2c 100%);
}
.patch-enemy-card.enemy-skulker:hover {
    border-color: #fbbf24;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.2);
}

.patch-enemy-card.enemy-hydra {
    border-color: rgba(56, 189, 248, 0.5);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.12) 0%, #151d2c 100%);
}
.patch-enemy-card.enemy-hydra:hover {
    border-color: #38bdf8;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.2);
}

.patch-enemy-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.enemy-bully .patch-enemy-title { color: #f87171; }
.enemy-skulker .patch-enemy-title { color: #fbbf24; }
.enemy-hydra .patch-enemy-title { color: #38bdf8; }

/* Twitch Drop Cards */
.patch-drop-card {
    background: #151d2c;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
}

.patch-drop-card.drop-oxygen {
    border: 1px solid rgba(56, 189, 248, 0.4);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, #151d2c 100%);
}

.patch-drop-card.drop-mailbox {
    border: 1px solid rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, #151d2c 100%);
}

/* Feat Cards */
.patch-feat-box {
    background: #151d2c;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.patch-feat-box.feat-easy { border-color: rgba(52, 211, 153, 0.5); }
.patch-feat-box.feat-med { border-color: rgba(251, 191, 36, 0.5); }
.patch-feat-box.feat-hard { border-color: rgba(248, 113, 113, 0.5); }

/* Developer Note Box */
.patch-dev-note {
    background: #142032;
    border-left: 4px solid var(--patch-ice-bright);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 16px 0 20px 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #e2e8f0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.patch-dev-note strong {
    color: var(--patch-ice-bright);
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.patch-dev-note.gold {
    background: #231c14;
    border-left-color: var(--patch-gold);
}
.patch-dev-note.gold strong {
    color: var(--patch-gold-bright);
}

.patch-dev-note.danger {
    background: #241416;
    border-left-color: var(--patch-danger);
}
.patch-dev-note.danger strong {
    color: #fca5a5;
}

/* Badge Tags */
.patch-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.patch-badge-tag.tag-new {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.5);
}

.patch-badge-tag.tag-rework {
    background: rgba(255, 193, 7, 0.25);
    color: #ffdb4d;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.patch-badge-tag.tag-buff {
    background: rgba(56, 189, 248, 0.25);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.5);
}

.patch-badge-tag.tag-nerf {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.patch-badge-tag.tag-fix {
    background: rgba(168, 85, 247, 0.25);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.5);
}

/* Accordion High Contrast Styling */
.patch-section .accordion-item {
    background: #141b28 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
}

.patch-section .accordion-button {
    background: #162032 !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 18px;
    box-shadow: none !important;
}

.patch-section .accordion-button:not(.collapsed) {
    background: #1c283e !important;
    color: var(--patch-gold-bright) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.patch-section .accordion-button::after {
    filter: invert(1);
}

.patch-section .accordion-body {
    background: #121824 !important;
    color: #f1f5f9 !important;
    padding: 18px 20px;
}

.patch-section .accordion-body li {
    color: #f1f5f9 !important;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 6px;
}

/* Concept Art Gallery Grid */
.patch-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .patch-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.patch-gallery-card {
    background: #141c2b;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.patch-gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--patch-ice-bright);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.25);
}

.patch-gallery-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.patch-gallery-footer {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
    background: #111827;
}

/* Lightbox Modal */
.patch-lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(5, 8, 14, 0.94);
    backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.patch-lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.patch-lightbox-content {
    max-width: 92vw;
    max-height: 90vh;
    position: relative;
    text-align: center;
}

.patch-lightbox-img {
    max-width: 100%;
    max-height: 84vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.4);
    object-fit: contain;
}

.patch-lightbox-caption {
    margin-top: 14px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.patch-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.patch-lightbox-close:hover {
    background: var(--patch-danger);
    border-color: var(--patch-danger);
    transform: rotate(90deg);
}

/* Back to Top Floating Button */
.patch-back-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #141c2b;
    border: 1px solid var(--patch-ice-bright);
    color: var(--patch-ice-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.patch-back-top.show {
    opacity: 1;
    visibility: visible;
}

.patch-back-top:hover {
    background: var(--patch-ice);
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--patch-ice-glow);
}
