/*
Theme Name:   Blocksy Child
Theme URI:    https://neostylers.com
Description:  Neostylers — Sleek Urban Theme. Child theme of Blocksy.
Author:       Neostylers
Author URI:   https://neostylers.com
Template:     blocksy
Version:      1.1.0
Text Domain:  blocksy-child
*/

/* =========================================
   FONTS (locally hosted — DSGVO compliant)
   Files in: /themes/blocksy-child/fonts/
   ========================================= */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/inter-v20-latin-regular.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/inter-v20-latin-600.woff2') format('woff2');}
@font-face{font-family:'Syne';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/syne-v24-latin-600.woff2') format('woff2');}
@font-face{font-family:'Syne';font-style:normal;font-weight:800;font-display:swap;src:url('fonts/syne-v24-latin-800.woff2') format('woff2');}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/space-mono-v17-latin-regular.woff2') format('woff2');}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/space-mono-v17-latin-700.woff2') format('woff2');}
@font-face{font-family:'Space Mono';font-style:italic;font-weight:400;font-display:swap;src:url('fonts/space-mono-v17-latin-italic.woff2') format('woff2');}

/* =========================================
   VARIABLES
   ========================================= */

:root {
    --bg: #0a0a0a;
    --fg: #f4f4f5;
    --accent: #ff8a00; /* Tangerine */
    --grid-line: #2a2a2a;
    --text-color: #d1d1d1;
}

/* Safe box-sizing for custom elements (prevents mobile overflow) */
.container, .container *, .ticker-wrap, .ticker-wrap * {
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background-color: var(--bg) !important;
    color: var(--fg) !important;
    line-height: 1.6;
    overflow-x: clip; /* clip statt hidden, damit position:sticky funktioniert */
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: var(--accent); }

/* =========================================
   GLOBAL ELEMENTS
   ========================================= */
/* Full-bleed: breaks out of Blocksy's content container to full viewport width */
.container {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    border-left: 1px solid var(--grid-line);
    border-right: 1px solid var(--grid-line);
}

.section-header {
    padding: 30px 40px;
    border-bottom: 1px solid var(--grid-line);
    border-top: 1px solid var(--grid-line);
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    background: #0f0f0f;
    color: var(--fg) !important;
}

.section-header span {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 2px;
}

.btn-acid {
    display: inline-block;
    background-color: var(--accent);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 24px;
    font-size: 0.9rem;
    border: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.btn-acid::after {
    content: '';
    position: absolute;
    top: 5px; left: 5px;
    width: 100%; height: 100%;
    border: 1px solid var(--accent);
    z-index: -1;
    transition: all 0.2s ease;
}

.btn-acid:hover { transform: translate(3px, 3px); }
.btn-acid:hover::after { transform: translate(-3px, -3px); }

/* =========================================
   TICKER
   ========================================= */
.ticker-wrap {
    display: none; /* Laufbalken aus */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    background-color: var(--accent); color: #000;
    overflow: hidden; padding: 8px 0; border-bottom: 1px solid #000;
}
.ticker {
    display: inline-block; white-space: nowrap;
    animation: ticker 25s linear infinite; font-weight: 700;
    text-transform: uppercase; font-size: 0.8rem;
}
.ticker span { padding: 0 2rem; }
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .ticker { animation: none; }
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; border-bottom: 1px solid var(--grid-line);
    flex-wrap: wrap; gap: 20px;
}
.site-logo {
    font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 800; text-transform: uppercase; letter-spacing: -1.5px;
    border: none; padding: 0;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 30px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; flex-wrap: wrap; }

/* =========================================
   HERO (TOP STORY)
   ========================================= */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
}
.hero-content {
    padding: clamp(40px, 5vw, 60px) clamp(20px, 4vw, 40px);
    display: flex; flex-direction: column; justify-content: center;
    border-right: 1px solid var(--grid-line);
}
.hero-meta {
    color: var(--accent); font-size: 0.75rem; text-transform: uppercase;
    margin-bottom: 20px; display: flex; gap: 15px; flex-wrap: wrap; letter-spacing: 1px;
}
.hero-content h1 {
    font-family: 'Syne', sans-serif; font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800; line-height: 0.95; text-transform: uppercase; margin-bottom: 20px; letter-spacing: -1px;
    color: var(--fg) !important;
    overflow-wrap: break-word;
}
.hero-content p { color: #888; margin-bottom: 30px; font-size: 1rem; max-width: 90%; }

.hero-image {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}
.hero-image img {
    width: 100%; height: 100%; object-fit: cover; position: absolute;
    transition: transform 0.5s ease;
}
.hero:hover .hero-image img { transform: scale(1.02); }

/* =========================================
   ARTICLE GRID (LATEST)
   ========================================= */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.article-card {
    border-right: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line);
    display: flex; flex-direction: column; transition: background 0.3s;
}
.article-card:nth-child(3n) { border-right: none; }
.article-card:hover { background: #111; }
.card-img { width: 100%; aspect-ratio: 4/5; overflow: hidden; border-bottom: 1px solid var(--grid-line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.article-card:hover .card-img img { transform: scale(1.05); }
.card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.card-tag { color: var(--accent); font-size: 0.7rem; margin-bottom: 10px; }
.card-title {
    font-family: 'Syne', sans-serif; font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 800; text-transform: uppercase; line-height: 1.2; margin-bottom: 15px;
    color: var(--fg) !important;
}
.card-author { margin-top: auto; font-size: 0.75rem; color: #666; }

/* =========================================
   CATEGORY HIGHLIGHT (STREETWEAR)
   ========================================= */
.highlight-section {
    display: grid; grid-template-columns: 1fr 2fr;
    border-bottom: 1px solid var(--grid-line);
}
.highlight-info {
    padding: 40px; border-right: 1px solid var(--grid-line);
    display: flex; flex-direction: column; justify-content: center;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%231a1a1a"/></svg>');
}
.highlight-info h2 { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; margin-bottom: 15px; color: var(--accent); line-height: 1; overflow-wrap: break-word; }

.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; }
.highlight-grid .article-card { border-bottom: none; }
.highlight-grid .article-card:nth-child(2n) { border-right: none; }

/* =========================================
   AUTHORS (THE SYNDICATE)
   ========================================= */
.authors-grid { display: grid; grid-template-columns: 1fr 1fr; }
.author-profile {
    padding: 40px; border-right: 1px solid var(--grid-line);
    display: flex; align-items: center; gap: 25px;
}
.author-profile:last-child { border-right: none; }
.author-img {
    width: 90px; height: 90px; border: 1px solid var(--accent);
    object-fit: cover; flex-shrink: 0;
}
.author-details h3 { font-family: 'Syne', sans-serif; font-size: 1.5rem; text-transform: uppercase; }
.author-role { color: var(--accent); font-size: 0.75rem; margin-bottom: 10px; display: block; letter-spacing: 1px; }
.author-bio { font-size: 0.85rem; color: #888; }

/* =========================================
   TERMINAL NEWSLETTER
   ========================================= */
.terminal-newsletter {
    padding: 50px 40px; background: #050505;
    border-top: 1px solid var(--grid-line);
}
.terminal-header { color: var(--accent); margin-bottom: 15px; font-weight: 700; font-size: 0.9rem; }
.terminal-input-group { display: flex; max-width: 500px; }
.terminal-input-group input {
    flex-grow: 1; min-width: 0; background: transparent; border: 1px solid var(--grid-line);
    color: var(--accent); font-family: 'Space Mono', monospace; padding: 12px; outline: none; font-size: 0.9rem;
}
.terminal-input-group input:focus { border-color: var(--accent); }
.terminal-input-group button {
    background: var(--accent); color: #000; border: none;
    font-family: 'Space Mono', monospace; font-weight: 700; padding: 0 25px; cursor: pointer; font-size: 0.9rem;
    white-space: nowrap;
}

/* =========================================
   ARTICLE / SINGLE POST  (pipeline output)
   Styles the standard WordPress markup the content
   pipeline produces — no custom classes needed.
   Scoped to .single-post so it never touches pages.
   ========================================= */

/* Readable reading column */
.single-post .entry-content {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    line-height: 1.75;
    color: var(--text-color);
}

.single-post .entry-content p { margin-bottom: 1.5rem; }

/* Lead paragraph = the first paragraph (intro) — larger, brighter, NOT bold */
.single-post .entry-content > p:first-of-type {
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--fg);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Body links */
.single-post .entry-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.single-post .entry-content a:hover { opacity: 0.8; }

/* H2 section headings — auto "//" accent prefix (replaces the demo's <span>) */
.single-post .entry-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--fg);
    line-height: 1.1;
    border-bottom: 1px solid var(--grid-line);
    padding-bottom: 12px;
    margin: 3.5rem 0 1.5rem 0;
    overflow-wrap: break-word;
}
.single-post .entry-content h2::before {
    content: '// ';
    color: var(--accent);
}

/* H3 sub-headings (outfit names) */
.single-post .entry-content h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fg);
    margin: 2.5rem 0 1rem 0;
}

/* Inline emphasis */
.single-post .entry-content strong { color: var(--fg); font-weight: 600; }
.single-post .entry-content em { color: var(--fg); }

/* Image embeds: pipeline outputs <p style="text-align:center"><img><br>by <a>Pinterest</a></p> */
.single-post .entry-content p:has(img) {
    background: #0f0f0f;
    border: 1px solid var(--grid-line);
    padding: 20px;
    margin: 3rem auto;
    max-width: 560px;
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    line-height: 1.8;
}
.single-post .entry-content p:has(img) img {
    display: block;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 2/3;
    object-fit: cover;
    margin: 0 auto 12px auto;
    border: 1px solid var(--grid-line);
    border-radius: 0 !important;   /* overrides the inline 12px radius */
    filter: grayscale(25%);
    transition: filter 0.3s ease;
}
.single-post .entry-content p:has(img) img:hover { filter: grayscale(0%); }
.single-post .entry-content p:has(img) br { display: none; } /* tightens the caption line */
.single-post .entry-content p:has(img) a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Hide raw JSON-LD if ever printed in content */
.single-post .entry-content script { display: none; }

/* Post title + meta come from the Blocksy theme (outside .entry-content).
   Blocksy's palette is built for a light background, so force light colors here. */
.single-post h1,
.single-post .entry-title,
.single-post .entry-title a {
    font-family: 'Syne', sans-serif !important;
    font-weight: 800 !important;
    font-size: clamp(2.3rem, 5vw, 4rem) !important;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1 !important;
    color: var(--fg) !important;
}

/* Author / date / category meta line */
.single-post .entry-meta,
.single-post .entry-meta a,
.single-post .ct-meta-element,
.single-post .ct-meta-element a {
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999 !important;
}
.single-post .entry-meta a:hover,
.single-post .ct-meta-element a:hover {
    color: var(--accent) !important;
}

/* Legacy fallback (non-scoped) for any embeds outside .single-post */
.entry-content img, .outfit-embed img {
    border-radius: 0 !important;
    border: 1px solid var(--grid-line);
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; }
    .hero-content { border-right: none; border-bottom: 1px solid var(--grid-line); }
    .hero-image { min-height: 400px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .article-card:nth-child(3n) { border-right: 1px solid var(--grid-line); }
    .article-card:nth-child(2n) { border-right: none; }
    .highlight-section { grid-template-columns: 1fr; }
    .highlight-info { border-right: none; border-bottom: 1px solid var(--grid-line); }
}

@media (max-width: 768px) {
    .site-header { justify-content: center; padding: 18px 20px; }
    .site-nav { justify-content: center; flex-wrap: wrap; gap: 18px; }
    .section-header { padding: 22px 20px; }
    .hero-content { padding: 40px 20px; }
    .hero-content h1 { font-size: clamp(2rem, 8.5vw, 3rem); letter-spacing: -0.5px; }
    .hero-content p { max-width: 100%; }
    .hero-image { min-height: 320px; }
    .article-grid, .highlight-grid, .authors-grid { grid-template-columns: 1fr; }
    .article-card { border-right: none !important; }
    .highlight-info { padding: 30px 20px; }
    .terminal-newsletter { padding: 40px 20px; }
    .author-profile { border-right: none; border-bottom: 1px solid var(--grid-line); flex-direction: column; text-align: center; padding: 30px 20px; }
    .author-profile:last-child { border-bottom: none; }

    /* Article: tighten embed padding + headings on mobile */
    .single-post .entry-content p:has(img) { padding: 14px; }
    .single-post .entry-content h2 { margin-top: 2.5rem; }
}

@media (max-width: 480px) {
    .card-content { padding: 20px; }
    .terminal-input-group { flex-direction: column; gap: 10px; max-width: 100%; }
    .terminal-input-group button { padding: 14px; }
}

/* =========================================
   UNIVERSAL HEADER (injected via functions.php)
   Reuses .site-header / .site-logo / .site-nav styling.
   ========================================= */
/* Hide Blocksy's own (white) header — universal header is injected instead */
#masthead,
.ct-header { display: none !important; }

/* Top utility bar (white, black text) */
.neo-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 26px;
    background: #ffffff;
    color: #000;
    padding: 7px 40px;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #000;
}
.neo-topbar a { color: #000; }
.neo-topbar a:hover { color: var(--accent); }

/* Sticky main header */
.neo-universal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    transition: padding 0.35s ease;
}
.neo-universal-header .site-logo { transition: font-size 0.35s ease; }

/* Scrolled (desktop): compact + stacked — logo on top, categories below, centred */
@media (min-width: 769px) {
    .neo-universal-header.scrolled {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 14px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--grid-line);
    }
    .neo-universal-header.scrolled .site-logo { font-size: 1.6rem; }
}

/* WordPress menu rendered inside the custom header */
.site-nav { align-items: center; }
.neo-menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 30px;
    counter-reset: navnum;
}
.neo-menu li { position: relative; }
.neo-menu a {
    display: block;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--fg);
    white-space: nowrap;
    transition: color 0.2s ease;
}
.neo-menu a:hover,
.neo-menu .current-menu-item > a { color: var(--accent); }

/* Auto-numbering of top-level items: [01], [02] … */
.neo-menu > li > a::before {
    counter-increment: navnum;
    content: "[0" counter(navnum) "] ";
}

/* Caret on items that have a dropdown */
.neo-menu > .menu-item-has-children > a::after {
    content: " \25BE";
    color: var(--accent);
    font-size: 0.75em;
}

/* Dropdown panels (desktop, on hover) */
.neo-menu .sub-menu {
    list-style: none; margin: 0; padding: 8px 0;
    position: absolute; top: 100%; left: 0;
    min-width: 210px;
    background: #0f0f0f;
    border: 1px solid var(--grid-line);
    display: none;
    z-index: 200;
}
.neo-menu li:hover > .sub-menu { display: block; }
.neo-menu .sub-menu a { padding: 10px 18px; font-size: 0.78rem; }
.neo-menu .sub-menu a:hover { background: #161616; }

@media (max-width: 768px) {
    .neo-topbar { justify-content: center; flex-wrap: wrap; gap: 14px; padding: 7px 16px; font-size: 0.66rem; }

    /* Logo centred on top, categories centred below — no burger */
    .site-header.neo-universal-header {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .neo-universal-header .site-nav { width: 100%; }
    .neo-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 22px;
    }
    /* Sub-menus hidden on mobile (reachable via the category page) */
    .neo-menu .sub-menu { display: none !important; }
    .neo-menu > .menu-item-has-children > a::after { content: ""; }
}

/* =========================================
   HEADER SEARCH (lupe toggle)
   ========================================= */
.neo-search { display: flex; align-items: center; position: relative; }
.neo-search-toggle {
    background: none; border: none; color: var(--fg);
    cursor: pointer; padding: 6px; display: flex; align-items: center;
}
.neo-search-toggle:hover { color: var(--accent); }
.neo-search-form { width: 0; overflow: hidden; transition: width 0.3s ease; }
.neo-search.search-open .neo-search-form { width: 200px; }
.neo-search-form input {
    width: 100%; background: transparent; border: none;
    border-bottom: 1px solid var(--grid-line);
    color: var(--fg); font-family: 'Space Mono', monospace;
    font-size: 0.8rem; padding: 6px 4px; outline: none;
}
.neo-search-form input:focus { border-color: var(--accent); }

/* =========================================
   CATEGORY RAIL  ([neo_section]) — horizontal scroll, text on image
   ========================================= */
.neo-rail {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--grid-line);
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
.neo-rail::-webkit-scrollbar { height: 8px; }
.neo-rail::-webkit-scrollbar-thumb { background: var(--accent); }
.rail-card {
    flex: 0 0 300px;
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-right: 1px solid var(--grid-line);
    display: block;
}
.rail-card img,
.rail-card .neo-noimg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.rail-card:hover img { transform: scale(1.05); }
.rail-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 55%);
}
.rail-cat {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    color: var(--accent); font-family: 'Space Mono', monospace;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
}
.rail-title {
    position: absolute; bottom: 18px; left: 16px; right: 16px; z-index: 2;
    color: #fff; font-family: 'Syne', sans-serif; font-weight: 800;
    text-transform: uppercase; font-size: 1.15rem; line-height: 1.15;
}
.neo-noimg {
    background: repeating-linear-gradient(45deg,#111,#111 12px,#161616 12px,#161616 24px);
}

/* Card links (dynamic grid) */
.article-card .card-title a { color: inherit; }
.article-card:hover .card-title { color: var(--accent); }

/* About-Us CTA under The Syndicate */
.syndicate-cta {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid var(--grid-line);
}

@media (max-width: 768px) {
    .rail-card { flex: 0 0 72vw; }
    .neo-search.search-open .neo-search-form { width: 150px; }
}