/* ============================================
   whazora.com — Vlogs (editorial magazine layout)
   Dark + emerald · Outfit display + DM Sans body
   ============================================ */

:root {
    --vlog-bg: #060709;
    --vlog-bg-soft: #0a0c0f;
    --vlog-surface: #0d1014;
    --vlog-surface-2: #14181f;
    --vlog-border: rgba(255, 255, 255, 0.055);
    --vlog-border-strong: rgba(255, 255, 255, 0.11);
    --vlog-hair: rgba(255, 255, 255, 0.07);
    --vlog-text-1: #f0f4f8;
    --vlog-text-2: #a9b3c2;
    --vlog-text-3: #6c7382;
    --vlog-text-4: #4a505c;
    --vlog-emerald: #4a9d78;
    --vlog-emerald-bright: #5dbf94;
    --vlog-emerald-deep: #3a8566;
    --vlog-emerald-glow: rgba(74, 157, 120, 0.14);
    --vlog-emerald-faint: rgba(74, 157, 120, 0.05);
    --vlog-font: 'DM Sans', system-ui, -apple-system, sans-serif;
    --vlog-display: 'Outfit', sans-serif;
    --vlog-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
    --vlog-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --vlog-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   AMBIENT BACKGROUND — pure monochrome
   ============================================ */
.vlog-bg-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 12% 8%, rgba(255, 255, 255, 0.025), transparent 60%),
        radial-gradient(ellipse 50% 50% at 92% 88%, rgba(255, 255, 255, 0.012), transparent 65%),
        var(--vlog-bg);
}

.vlog-bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: radial-gradient(ellipse 75% 55% at 50% 30%, black 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 30%, black 15%, transparent 78%);
}

/* Subtle film grain (SVG-noise) overlay for editorial texture */
.vlog-bg-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
}

/* ============================================
   HEADER — editorial masthead (override legal.css)
   ============================================ */
.legal-header {
    padding: 88px 0 56px !important;
    max-width: 920px !important;
    position: relative;
    display: block;
    text-align: left;
}

.legal-header .legal-tag {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    font-family: var(--vlog-mono) !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.24em !important;
    text-transform: uppercase;
    color: var(--vlog-text-2) !important;
    margin-bottom: 28px !important;
    padding: 6px 14px 6px 14px !important;
    border: 1px solid var(--vlog-border-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.legal-header .legal-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--vlog-text-1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

.legal-header h1 {
    display: block !important;
    font-family: var(--vlog-display) !important;
    font-size: clamp(2.6rem, 6vw, 4.4rem) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.035em !important;
    color: var(--vlog-text-1) !important;
    margin: 0 0 24px !important;
}

.legal-header h1 .accent {
    color: var(--vlog-text-3) !important;
    font-style: italic;
    font-weight: 500;
}

.legal-header .legal-lead {
    display: block !important;
    font-size: clamp(1.05rem, 1.3vw, 1.18rem) !important;
    color: var(--vlog-text-2) !important;
    line-height: 1.6 !important;
    max-width: 56ch !important;
    font-weight: 400;
    margin: 0;
}

/* Editorial sub-meta below the lead */
.vlog-header-meta {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--vlog-hair);
    font-family: var(--vlog-mono);
    font-size: 0.72rem;
    color: var(--vlog-text-3);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vlog-header-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.vlog-header-meta .divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--vlog-text-4);
    padding: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

/* ============================================
   LIST CONTAINER — 2-column grid
   ============================================ */
.vlog-list {
    counter-reset: vlog-num;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 8px;
    padding-bottom: 96px;
}

/* ============================================
   VLOG CARD — boxed article card
   ============================================ */
.vlog-card {
    counter-increment: vlog-num;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 28px 24px;
    border: 1px solid var(--vlog-border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.005));
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition:
        border-color 0.4s var(--vlog-ease),
        background 0.4s var(--vlog-ease),
        transform 0.4s var(--vlog-ease-out);
}

/* Top accent line on hover */
.vlog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--vlog-ease);
}

/* Soft glow on hover */
.vlog-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--vlog-ease);
    pointer-events: none;
    z-index: 0;
}

.vlog-card > * { position: relative; z-index: 1; }

.vlog-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005));
    transform: translateY(-3px);
}

.vlog-card:hover::before,
.vlog-card:hover::after { opacity: 1; }

/* Card head: index + date */
.vlog-card-index {
    font-family: var(--vlog-mono);
    font-feature-settings: 'tnum';
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--vlog-text-3);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.35s var(--vlog-ease);
}

.vlog-card-index::before {
    content: counter(vlog-num, decimal-leading-zero);
    font-size: 0.78rem;
    color: var(--vlog-text-1);
    font-weight: 600;
}

.vlog-card-date {
    font-family: var(--vlog-mono);
    font-feature-settings: 'tnum';
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--vlog-text-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.vlog-card-title {
    font-family: var(--vlog-display);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.018em;
    color: var(--vlog-text-1);
    margin: 4px 0 0;
    transition: color 0.35s var(--vlog-ease);
    text-wrap: balance;
}

.vlog-card:hover .vlog-card-title { color: #ffffff; }

.vlog-card-excerpt {
    font-family: var(--vlog-font);
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--vlog-text-2);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Card footer area */
.vlog-card-body {
    display: contents;
}

/* Compact author byline inside card */
.vlog-card .vlog-author--compact {
    margin-top: auto;
    padding: 14px 0 0;
    background: none;
    border: none;
    border-top: 1px solid var(--vlog-hair);
    gap: 10px;
    align-items: center;
    align-self: stretch;
    border-radius: 0;
}

.vlog-card .vlog-author--compact .vlog-author-img {
    width: 30px;
    height: 30px;
    border: 1px solid var(--vlog-border-strong);
}

.vlog-card .vlog-author--compact .vlog-author-name {
    font-family: var(--vlog-font);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--vlog-text-1);
    letter-spacing: -0.005em;
}

.vlog-card .vlog-author--compact .vlog-author-role {
    font-family: var(--vlog-mono);
    font-size: 0.7rem;
    color: var(--vlog-text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* Arrow indicator (kept but discrete inside card) */
.vlog-card-arrow { display: none; }

/* ============================================
   FEATURED — first card spans 2 columns
   ============================================ */
.vlog-card.is-featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 36px 40px;
    background:
        radial-gradient(ellipse 50% 80% at 0% 50%, rgba(255, 255, 255, 0.05), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
    border-color: var(--vlog-border-strong);
}

.vlog-card.is-featured:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
}

.vlog-card.is-featured > .vlog-card-index,
.vlog-card.is-featured > .vlog-card-date,
.vlog-card.is-featured > .vlog-card-title,
.vlog-card.is-featured > .vlog-card-excerpt {
    flex: 0 1 auto;
}

.vlog-card.is-featured .vlog-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.vlog-card.is-featured .vlog-card-title {
    font-size: clamp(1.7rem, 2.6vw, 2.15rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    max-width: 22ch;
    margin: 0;
}

.vlog-card.is-featured .vlog-card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    max-width: 52ch;
}

.vlog-card.is-featured .vlog-author--compact {
    margin-top: 4px;
    padding: 0;
    border-top: none;
}

.vlog-card.is-featured::before { display: none; }

/* Featured badge */
.vlog-featured-badge {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    align-self: flex-start;
    font-family: var(--vlog-mono);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--vlog-text-1);
}

.vlog-featured-badge::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--vlog-text-1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ============================================
   EMPTY / ERROR / LOADING STATES
   ============================================ */
.vlog-empty,
.vlog-error,
.vlog-loading {
    text-align: center;
    padding: 72px 24px;
    font-family: var(--vlog-mono);
    font-size: 0.85rem;
    color: var(--vlog-text-3);
    letter-spacing: 0.06em;
    border: 1px dashed var(--vlog-border);
    border-radius: 16px;
    margin: 24px 0;
}

.vlog-loading i { color: var(--vlog-text-2); margin-right: 8px; }
.vlog-error { color: #e88; border-color: rgba(232, 136, 136, 0.2); }

/* ============================================
   ARTICLE DETAIL PAGE (vlog.html) — centered
   ============================================ */
#vlog-article {
    max-width: 760px;
    margin: 56px auto 0;
    padding: 0 8px;
}

.vlog-article-header {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--vlog-hair);
}

.vlog-article-header > .legal-tag,
.vlog-article-header > .legal-meta {
    display: flex;
    justify-content: center;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.vlog-article-header h1 {
    font-family: var(--vlog-display);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--vlog-text-1);
    margin: 18px auto 22px;
    text-wrap: balance;
    max-width: 22ch;
    text-align: center;
}

.vlog-article-header .vlog-author {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.vlog-content {
    font-family: var(--vlog-font);
    font-size: 1.05rem;
    line-height: 1.78;
    color: var(--vlog-text-2);
    max-width: 68ch;
    margin: 0 auto;
    text-align: left;
}

.vlog-back-link {
    margin-left: auto;
    margin-right: auto;
    display: inline-flex;
}

#vlog-article > .vlog-back-link {
    display: flex;
    justify-content: center;
    width: max-content;
    margin: 56px auto 0;
}

.vlog-content h2,
.vlog-content h3 {
    font-family: var(--vlog-display);
    color: var(--vlog-text-1);
    margin: 2.4rem 0 0.9rem;
    letter-spacing: -0.015em;
    font-weight: 600;
}

.vlog-content h2 { font-size: 1.6rem; }
.vlog-content h3 { font-size: 1.25rem; }

.vlog-content p {
    margin: 0 0 1.1rem;
}

.vlog-content a {
    color: var(--vlog-text-1);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.25s ease, color 0.25s ease;
}

.vlog-content a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.vlog-content ul,
.vlog-content ol {
    margin: 0 0 1.2rem 1.4rem;
}

.vlog-content li { margin-bottom: 0.4rem; }

.vlog-content blockquote {
    margin: 1.8rem 0;
    padding: 4px 0 4px 24px;
    border-left: 2px solid var(--vlog-text-1);
    font-style: italic;
    color: var(--vlog-text-1);
    font-size: 1.1rem;
    line-height: 1.6;
}

.vlog-content code {
    font-family: var(--vlog-mono);
    font-size: 0.88em;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--vlog-border);
    border-radius: 4px;
    color: var(--vlog-text-1);
}

.vlog-youtube-embed {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--vlog-border-strong);
    background: #000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.vlog-youtube-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.vlog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 56px;
    padding: 12px 18px;
    font-family: var(--vlog-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--vlog-text-2);
    text-decoration: none;
    border: 1px solid var(--vlog-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.35s var(--vlog-ease);
}

.vlog-back-link:hover {
    color: var(--vlog-text-1);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(-2px);
}

.vlog-back-link i { color: var(--vlog-text-2); transition: transform 0.35s var(--vlog-ease); }
.vlog-back-link:hover i { transform: translateX(-3px); color: var(--vlog-text-1); }

/* ============================================
   AUTHOR BYLINE
   ============================================ */
.vlog-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 16px 20px;
    border: 1px solid var(--vlog-border);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}

.vlog-author--compact {
    margin-top: 1rem;
    padding: 0.65rem 0.75rem;
    gap: 0.75rem;
}

.vlog-author-img {
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--vlog-border-strong);
    filter: grayscale(0.4);
}

.vlog-author--compact .vlog-author-img {
    width: 40px;
    height: 40px;
}

.vlog-author-text {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.vlog-author-name {
    font-family: var(--vlog-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--vlog-text-1);
    letter-spacing: -0.005em;
}

.vlog-author--compact .vlog-author-name {
    font-size: 0.88rem;
}

.vlog-author-role {
    font-size: 0.85rem;
    color: var(--vlog-text-3);
    font-weight: 500;
}

.vlog-author--compact .vlog-author-role {
    font-size: 0.78rem;
}

.vlog-author-brand {
    font-family: var(--vlog-mono);
    font-size: 0.72rem;
    color: var(--vlog-text-3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ============================================
   ENTRANCE ANIMATION (staggered reveal)
   ============================================ */
.vlog-card {
    opacity: 0;
    transform: translateY(14px);
    animation: vlog-reveal 0.7s var(--vlog-ease-out) forwards;
}

.vlog-card:nth-child(1) { animation-delay: 0.05s; }
.vlog-card:nth-child(2) { animation-delay: 0.15s; }
.vlog-card:nth-child(3) { animation-delay: 0.22s; }
.vlog-card:nth-child(4) { animation-delay: 0.28s; }
.vlog-card:nth-child(5) { animation-delay: 0.33s; }
.vlog-card:nth-child(6) { animation-delay: 0.37s; }
.vlog-card:nth-child(n+7) { animation-delay: 0.4s; }

@keyframes vlog-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header reveal (only direct children, no fallback hidden state) */
@supports (animation: vlog-reveal 1s) {
    .legal-header .legal-tag,
    .legal-header h1,
    .legal-header .legal-lead,
    .legal-header .vlog-header-meta {
        opacity: 0;
        transform: translateY(10px);
        animation: vlog-reveal 0.8s var(--vlog-ease-out) forwards;
    }
    .legal-header .legal-tag { animation-delay: 0s; }
    .legal-header h1 { animation-delay: 0.08s; }
    .legal-header .legal-lead { animation-delay: 0.16s; }
    .legal-header .vlog-header-meta { animation-delay: 0.24s; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
    .vlog-card.is-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 28px;
    }

    .vlog-card.is-featured .vlog-card-title {
        font-size: clamp(1.5rem, 4vw, 1.85rem);
    }
}

@media (max-width: 720px) {
    .legal-header { padding: 64px 0 40px !important; }

    .vlog-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .vlog-card {
        padding: 24px 22px 20px;
    }

    .vlog-card-title {
        font-size: 1.25rem;
    }

    .vlog-card.is-featured {
        padding: 26px 22px;
    }
}

@media (max-width: 520px) {
    .legal-header { padding: 52px 0 32px !important; }
    .legal-header h1 { font-size: clamp(2.1rem, 9vw, 2.6rem) !important; }

    .vlog-header-meta {
        flex-wrap: wrap;
        gap: 10px 14px;
        font-size: 0.66rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.001ms !important;
        animation: none !important;
    }
    .vlog-card,
    .legal-header > * {
        opacity: 1;
        transform: none;
    }
}
