/* ==========================================================================
   FIREBIX YT-STYLE POST VIEW ARCHITECTURE (STRICT LEFT-LOCK CRUSHER)
   ========================================================================== */

:root {
    --app-bg: #FAFAFB;
    --card-surface: #FFFFFF;
    --border-light: rgba(0, 0, 0, 0.05);
    --text-main: #111827;
    --text-secondary: #6B7280;
    --fire-brand: #F13423;
    --pill-idle: #F3F4F6;
    --radius-card: 16px;
    --radius-inner: 12px;
}

body {
    background-color: var(--app-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* 💻 DESKTOP LAYOUT OFFSETS */
.app-layout-wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 100vh;
    box-sizing: border-box;
}

.main-content-stream {
    width: 100% !important;
    max-width: 640px !important; 
    padding: 20px 16px 100px 16px;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .app-layout-wrapper {
        padding-left: 260px !important; 
    }
}

/* 📱 NATIVE APP BAR HEADER */
.post-app-top-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 16px;
    padding: 4px 0;
}

.back-navigation-node {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card-surface);
    border: 1px solid var(--border-light);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    color: var(--text-main);
    font-size: 18px;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

.back-navigation-node:hover {
    background: #F3F4F6;
}

.center-stage-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.top-bar-options-trigger {
    background: transparent;
    border: none;
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    -webkit-tap-highlight-color: transparent;
}

/* 🎴 YT-COMMUNITY MASTER CARD */
.yt-community-view-card {
    position: relative;
    background: var(--card-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.01);
    display: flex !important;
    flex-direction: column !important;
}

/* Profile Row */
.card-profile-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 14px;
}

.creator-profile-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

.avatar-circle-frame {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.03);
    background-size: cover;
}

.identity-text-stack {
    display: flex !important;
    flex-direction: column !important;
}

.display-name-txt {
    font-size: 14.5px;
    font-weight: 750;
    color: var(--text-main);
}

.handle-name-txt {
    font-size: 11.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 🪐 PURE BLACK TO DISCO GRADIENT HOVER FOLLOW BTN MATRIX */
.inline-follow-btn {
    position: relative;
    border: none;
    background: #111827; 
    color: #ffffff;      
    font-size: 11px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inline-follow-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #F13423, #FF6B35, #ff0055, #F13423);
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.inline-follow-btn:hover::before {
    opacity: 1;
    animation: followDiscoShift 2.5s infinite linear;
}

.inline-follow-btn:hover {
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(241, 52, 35, 0.35);
}

.inline-follow-btn:active {
    transform: scale(0.95);
}

@keyframes followDiscoShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.category-badge-pill {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--pill-idle);
    color: #4B5563;
    padding: 4px 8px;
    border-radius: 20px;
}

/* 📸 INSTAGRAM STYLE HORIZONTAL CAROUSEL SWIPER */
.swiper-relative-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-inner);
    overflow: hidden;
    margin-bottom: 14px;
    background: #FAFAFB;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.post-media-horizontal-swiper {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.post-media-horizontal-swiper::-webkit-scrollbar {
    display: none;
}

.swiper-image-slide {
    scroll-snap-align: start;
    flex: 0 0 100%;
    width: 100%;
    max-height: 460px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
}

.swiper-image-slide img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
}

/* ⚪ INSTAGRAM WHITE DOTS */
.swiper-dots-nav-wrapper {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.35);
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.indicator-dot-node {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.indicator-dot-node.active {
    background: #FFFFFF;
    transform: scale(1.3);
}

/* 📥 UNIFIED CONTENT AREA (FORCE LEFT LOCK MATRIX) */
.card-body-content-wrapper {
    margin-bottom: 16px;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; 
    justify-content: flex-start !important;
    text-align: left !important; 
    width: 100% !important;
    gap: 4px;
}

/* Title Headline (Bold & Strict Left) */
.post-title-headline {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
    margin: 0 !important;
    text-align: left !important;
    align-self: flex-start !important;
    width: 100% !important;
}

.post-desc-container {
    position: relative;
    display: block !important;
    text-align: left !important;
    align-self: flex-start !important;
    width: 100% !important;
}

/* Description Prose (Regular & Strict Left Layout) */
.post-desc-prose {
    font-size: 14.5px;
    line-height: 1.5;
    color: #374151;
    font-weight: 400 !important; 
    margin: 0 !important;
    white-space: pre-wrap;
    display: block !important;
    text-align: left !important; 
    width: 100% !important;
}

/* Truncation */
.post-desc-prose.data-truncate {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-expand-trigger-btn {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-block !important;
    margin-top: 2px;
    text-align: left !important;
    align-self: flex-start !important;
    -webkit-tap-highlight-color: transparent;
}

/* 🛠 INTERACTION ACTION LAYERS */
.card-action-bar-layout {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 6px 0;
    margin-bottom: 12px;
}

.segmented-like-dislike-pill {
    display: flex !important;
    background: var(--pill-idle);
    border-radius: 30px;
    padding: 2px;
}

.bar-btn-node {
    background: var(--pill-idle);
    border: none;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 30px;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.segmented-like-dislike-pill .bar-btn-node {
    background: transparent;
    padding: 6px 12px;
}

.segmented-like-dislike-pill .like-trigger-node {
    border-radius: 30px 0 0 30px;
}

.segmented-like-dislike-pill .dislike-trigger-node {
    padding-left: 8px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 30px 30px 0;
}

.bar-btn-node:hover {
    background: rgba(0, 0, 0, 0.05);
}

.fire-like-pop {
    position: absolute;
    transform: translate(-50%, -50%) scale(0);
    font-size: 85px;
    z-index: 99;
    pointer-events: none;
    background: linear-gradient(180deg, #ff4f1f 0%, #c91f14 68%, #8f1232 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.38);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(201, 31, 20, 0.78)) drop-shadow(0 0 26px rgba(255, 79, 31, 0.38));
    animation: firePopBlast 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fire-like-sparkle {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    z-index: 98;
    pointer-events: none;
    background: radial-gradient(circle, #fff7c2 0%, #ffb11f 45%, #f13423 100%);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.22), 0 0 12px rgba(255,177,31,0.78);
    transform: translate(-50%, -50%) scale(0);
    animation: fireSparklePop 0.72s ease-out forwards;
}

@keyframes firePopBlast {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-20deg); opacity: 0; }
    35% { transform: translate(-50%, -50%) scale(1.3) rotate(15deg); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
    75% { transform: translate(-50%, -50%) scale(0.95) translateY(-10px); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(0) translateY(-50px); opacity: 0; }
}

@keyframes fireSparklePop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(0); opacity: 0; }
}

.yt-curved-share-arrow {
    transform: scaleX(-1);
    font-size: 15px;
}

/* Metadata Footer Row */
.card-metadata-footer {
    display: flex !important;
    align-items: center !important;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 500;
}

/* 🎆 HIGH FIDELITY CELEBRATION EFFECTS OVERLAYS */
#followCelebrationCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 10000;
    transform: translateZ(0);
}

.follow-thanks-toast-alert {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #111827;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.follow-thanks-toast-alert.show-toast {
    top: 24px;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.thanks-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}
.thanks-toast-content b { color: #FF6B35; }

.fire-pulse-icon {
    font-size: 16px;
    color: #FF6B35;
    animation: firePulseNode 0.8s infinite alternate ease-in-out;
}
@keyframes firePulseNode {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px #F13423); }
    100% { transform: scale(1.2); filter: drop-shadow(0 0 6px #FF6B35); }
}

/* ==========================================================================
   📱 MOBILE ADAPTATION RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .main-content-stream {
        padding: 12px 10px 90px 10px;
    }

    .yt-community-view-card {
        padding: 12px;
        border-radius: 14px;
    }

    .bar-btn-node span {
        display: none;
    }

    .bar-btn-node {
        padding: 8px 14px;
    }

    .swiper-image-slide {
        max-height: 320px;
    }

    .swiper-image-slide img {
        max-height: 320px;
    }
}
