/*
Theme Name: BlacktoonWeb
Theme URI: https://graphixflow.website/
Author: Graphix Flow
Author URI: https://graphixflow.website/
Description: Premium Korean webtoon editorial magazine theme for BlacktoonWeb. Built for informational articles, content discovery, accessibility, and technical SEO.
Version: 12.1.6
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blacktoonweb
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

:root {
  --btw-bg: #070910;
  --btw-surface: #0d101b;
  --btw-surface-2: #131726;
  --btw-surface-3: #191d2e;
  --btw-text: #f4f5fb;
  --btw-text-soft: #d5d8e7;
  --btw-muted: #9298b3;
  --btw-border: rgba(215, 218, 239, 0.12);
  --btw-border-strong: rgba(215, 218, 239, 0.2);
  --btw-violet: #9b7cff;
  --btw-violet-2: #c5b5ff;
  --btw-accent: #7fe0d6;
  --btw-danger: #ff7a90;
  --btw-radius: 14px;
  --btw-radius-sm: 10px;
  --btw-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  --btw-font: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --btw-content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--btw-bg);
  color: var(--btw-text);
  font-family: var(--btw-font);
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--btw-violet-2); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--btw-violet);
  color: #080910;
  font-weight: 800;
}
.site-wrap { min-height: 100vh; background: radial-gradient(circle at 65% 0%, rgba(155,124,255,0.12), transparent 34%), var(--btw-bg); }
.container { width: min(var(--btw-content), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 32px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: clamp(1.45rem, 2vw, 2.05rem); line-height: 1.2; letter-spacing: 0; }
.section-kicker { margin: 0 0 4px; color: var(--btw-violet-2); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.section-subtitle { max-width: 620px; margin: 0; color: var(--btw-muted); font-size: .95rem; }
.btn, .search-submit, .wp-block-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--btw-border-strong);
  border-radius: var(--btw-radius-sm);
  background: var(--btw-violet);
  color: #080910;
  padding: 0 18px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover, .search-submit:hover, .wp-block-search__button:hover { transform: translateY(-1px); background: var(--btw-violet-2); color: #080910; }
.btn-secondary { background: transparent; color: var(--btw-text); }
.btn-secondary:hover { background: var(--btw-surface-2); color: var(--btw-violet-2); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--btw-border);
  background: rgba(7, 9, 16, 0.88);
  backdrop-filter: blur(16px);
}
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; min-height: 72px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.custom-logo { max-height: 42px; width: auto; }
.site-logo-text { font-size: 1.18rem; font-weight: 950; letter-spacing: .02em; }
.site-description { margin: -4px 0 0; color: var(--btw-muted); font-size: .76rem; }
.primary-navigation { justify-self: center; }
.primary-menu, .footer-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--btw-text-soft); font-size: .92rem; font-weight: 750; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { background: var(--btw-surface-2); color: var(--btw-text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--btw-border);
  border-radius: 10px;
  background: var(--btw-surface);
  color: var(--btw-text);
  cursor: pointer;
}
.mobile-menu-toggle { display: none; }
.mobile-menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; }
.search-panel { display: none; border-top: 1px solid var(--btw-border); padding: 14px 0; }
.search-panel.is-open { display: block; }
.search-form, .hero-search-form { display: flex; gap: 8px; }
.search-field {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--btw-border-strong);
  border-radius: var(--btw-radius-sm);
  background: var(--btw-surface);
  color: var(--btw-text);
  padding: 0 14px;
  outline: none;
}
.search-field:focus { border-color: var(--btw-violet); box-shadow: 0 0 0 3px rgba(155,124,255,.18); }
.hero { padding: 42px 0 26px; border-bottom: 1px solid var(--btw-border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(300px, .58fr); gap: 28px; align-items: center; }
.hero h1 { margin: 0; max-width: 860px; font-size: clamp(2.05rem, 4vw, 4.15rem); line-height: 1.08; letter-spacing: 0; }
.hero-intro { margin: 16px 0 0; max-width: 760px; color: var(--btw-text-soft); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero-panel { padding: 18px; border: 1px solid var(--btw-border); border-radius: var(--btw-radius); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); box-shadow: var(--btw-shadow); }
.hero-image { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 12px; }
.hero-search { margin-top: 22px; max-width: 760px; }
.keyword-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.keyword-list a { display: inline-flex; align-items: center; min-height: 34px; border: 1px solid var(--btw-border); border-radius: 999px; padding: 0 12px; color: var(--btw-muted); font-size: .86rem; font-weight: 760; }
.keyword-list a:hover { border-color: var(--btw-violet); color: var(--btw-violet-2); }
.article-card, .featured-article, .magazine-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--btw-border);
  border-radius: var(--btw-radius);
  background: var(--btw-surface);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.article-card:hover, .featured-article:hover, .magazine-card:hover { transform: translateY(-2px); border-color: rgba(155,124,255,.38); background: var(--btw-surface-2); }
.card-image-link { position:relative; display: block; overflow: hidden; background: var(--btw-surface-3); }
.card-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .card-image, .featured-article:hover .card-image, .magazine-card:hover .card-image { transform: scale(1.035); }
.card-body { padding: 18px; }
.card-category { display: inline-flex; color: var(--btw-violet-2); font-size: .76rem; font-weight: 900; letter-spacing: .04em; }
.card-title { margin: 8px 0 0; font-size: 1.08rem; line-height: 1.42; letter-spacing: 0; }
.card-title a:hover { color: var(--btw-violet-2); }
.card-excerpt { margin: 10px 0 0; color: var(--btw-muted); font-size: .92rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--btw-muted); font-size: .78rem; }
.featured-article { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: stretch; }
.featured-article .card-image-link { display: flex; height: 100%; max-height: 380px; }
.featured-article .card-image { width: 100%; height: 100%; min-height: 280px; max-height: 380px; aspect-ratio: 16 / 9; object-fit: cover; }
.featured-article .card-body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; justify-content: center; }
.featured-article .card-title { font-size: clamp(1.55rem, 2.6vw, 2.55rem); line-height: 1.22; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.magazine-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.magazine-card.large { grid-column: span 2; grid-row: span 2; }
.magazine-card.large .card-image { aspect-ratio: 16 / 12; }
.magazine-card.large .card-title { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.section-more { margin-top: 22px; text-align: center; }

/* --- Creative FAQ Redesign --- */
.faq-section { position: relative; padding: 85px 0; border-top: 1px solid rgba(155,124,255,0.15); background: radial-gradient(circle at 100% 0%, rgba(155,124,255,0.06), transparent 50%), #070910; overflow: hidden; }
.faq-section::before { content: ""; position: absolute; z-index: 0; left: -150px; bottom: -150px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(127,224,214,0.04), transparent 60%); pointer-events: none; }
.faq-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; margin-top: 40px; max-width: 860px; margin-inline: auto; }
.faq-item { border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; background: rgba(18,20,31,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.faq-item:hover { border-color: rgba(155,124,255,0.35); background: rgba(22,25,40,0.8); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 0; background: transparent; color: #e2e4f0; padding: 26px 32px; text-align: left; font-size: 1.15rem; font-weight: 700; cursor: pointer; transition: color 0.3s ease; }
.faq-question:hover { color: #fff; }
.faq-question::after { content: ""; display: block; flex-shrink: 0; width: 12px; height: 12px; border-bottom: 2.5px solid var(--btw-violet-2); border-right: 2.5px solid var(--btw-violet-2); transform: rotate(45deg); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease; }
.faq-question[aria-expanded="true"] { color: #fff; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.faq-question[aria-expanded="true"]::after { transform: rotate(225deg) translate(-2px, -2px); border-color: #fff; }
.faq-answer { display: grid; grid-template-rows: 0fr; opacity: 0; padding: 0 32px; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); color: rgba(226,228,240,0.72); line-height: 1.75; font-size: 1.05rem; }
.faq-answer.is-open { grid-template-rows: 1fr; opacity: 1; padding: 0 32px 28px; margin-top: 20px; }
.faq-answer > p { overflow: hidden; margin: 0; }
@media (max-width: 640px) { .faq-section { padding: 60px 0; } .faq-question { font-size: 1.05rem; padding: 22px 20px; } .faq-answer.is-open { padding: 0 20px 22px; } }

.site-footer { border-top: 1px solid var(--btw-border); background: var(--btw-surface); padding: 34px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.footer-brand { font-size: 1.12rem; font-weight: 950; }
.footer-menu { justify-content: flex-end; gap: 12px; }
.footer-menu a { color: var(--btw-muted); font-size: .9rem; }
.footer-copy { margin: 12px 0 0; color: var(--btw-muted); font-size: .86rem; }
.widget-area { margin-top: 22px; }
.breadcrumbs { margin: 18px 0; color: var(--btw-muted); font-size: .86rem; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 34px; padding: 34px 0; }
.entry-header { margin-bottom: 20px; }
.entry-title { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.16; }
.entry-content { color: var(--btw-text-soft); }
.entry-content a { color: var(--btw-violet-2); text-decoration: underline; text-underline-offset: 3px; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.2em; }
.entry-content h2, .entry-content h3 { color: var(--btw-text); line-height: 1.25; margin-top: 1.55em; }
.post-navigation { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.share-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; padding: 16px 0; border-top: 1px solid var(--btw-border); border-bottom: 1px solid var(--btw-border); }
.share-label { color: var(--btw-muted); font-size: .85rem; font-weight: 700; margin-right: 4px; }
.share-link { display: inline-block; border: 1px solid var(--btw-border-strong); border-radius: 999px; padding: 7px 14px; color: var(--btw-text-soft); font-size: .82rem; font-weight: 600; transition: background .18s, color .18s, border-color .18s; }
.share-link:hover { background: var(--btw-violet); border-color: var(--btw-violet); color: #080910; text-decoration: none; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 30px 0; }
.page-numbers { border: 1px solid var(--btw-border); border-radius: 9px; padding: 8px 12px; color: var(--btw-muted); }
.page-numbers.current, .page-numbers:hover { background: var(--btw-violet); color: #080910; }
.no-results { border: 1px solid var(--btw-border); border-radius: var(--btw-radius); padding: 30px; background: var(--btw-surface); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; }
  .primary-navigation { display: none; grid-column: 1 / -1; width: 100%; justify-self: stretch; }
  .primary-navigation.is-open { display: block; }
  .primary-menu { display: grid; gap: 6px; padding: 0 0 16px; }
  .primary-menu a { padding: 12px 0; }
  .mobile-menu-toggle { display: inline-block; }
  .hero-grid, .featured-article, .content-layout { grid-template-columns: 1fr; }
  .hero-panel { order: -1; padding: 10px; }
  .featured-article .card-image { min-height: 0; aspect-ratio: 16 / 10; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .magazine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--btw-content)); }
  .header-actions .search-toggle { display: none; }
  .hero { padding-top: 24px; }
  .hero-search-form, .search-form { flex-direction: column; }
  .posts-grid, .magazine-grid { grid-template-columns: 1fr; }
  .magazine-card.large { grid-column: auto; grid-row: auto; }
  .section-heading { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-menu { justify-content: flex-start; }
}
@media (max-width: 390px) {
  .site-logo-text { font-size: 1rem; }
  .hero h1 { font-size: 1.85rem; }
  .card-body { padding: 15px; }
}

/* Editorial art direction and restrained motion. */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .34; background-image: radial-gradient(rgba(255,255,255,.16) .55px, transparent .55px); background-size: 5px 5px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 40%); }
.site-wrap { background: radial-gradient(900px 440px at 82% -8%, rgba(126,91,246,.18), transparent 70%), radial-gradient(540px 340px at 4% 22%, rgba(65,123,148,.1), transparent 72%), var(--btw-bg); }
.site-header { box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.site-logo-text { letter-spacing: -.025em; }
.site-logo-text a::after { content: "WEB"; color: var(--btw-violet); font-size: .58em; letter-spacing: .08em; margin-left: .22em; vertical-align: .15em; }
.hero { position: relative; overflow: clip; padding: clamp(58px, 7vw, 104px) 0 clamp(46px, 5vw, 70px); border-bottom: 0; }
.hero::before { content:""; position:absolute; inset: 0; pointer-events:none; opacity:.55; background: linear-gradient(90deg, transparent 0 47%, rgba(198,181,255,.1) 47.1%, transparent 47.25%) 0 0/100% 100%, linear-gradient(transparent 0 70%, rgba(255,255,255,.035) 70.1%, transparent 70.25%) 0 0/100% 100%; }
.hero-grid { position:relative; grid-template-columns: minmax(0, 1fr) minmax(360px, .68fr); gap: clamp(32px, 6vw, 82px); }
.hero-copy { position:relative; padding: 20px 0; }
.section-kicker { display:flex; align-items:center; gap:9px; font-size:.69rem; letter-spacing:.16em; }
.hero .section-kicker span { width:28px; height:1px; background:var(--btw-violet); box-shadow: 0 0 10px var(--btw-violet); }
.hero h1 { max-width: 760px; margin-top: 15px; font-size: clamp(2.5rem, 4.7vw, 5.05rem); letter-spacing: -.065em; line-height: 1.01; text-wrap: balance; text-shadow: 0 20px 60px rgba(0,0,0,.3); }
.hero-intro { max-width: 620px; font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.85; }
.hero-search { max-width: 620px; }
.hero-search-form { padding:5px; border: 1px solid rgba(197,181,255,.25); border-radius: 13px; background: rgba(13,16,27,.78); box-shadow: 0 16px 35px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.hero-search-form .search-field { min-height: 48px; border-color: transparent; background: transparent; }
.hero-search-form .search-submit { min-height: 48px; border-radius: 9px; box-shadow: 0 8px 22px rgba(155,124,255,.28); }
.keyword-list { margin-top:18px; }
.keyword-list a { min-height:31px; font-size:.75rem; background:rgba(255,255,255,.018); transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.keyword-list a:hover { transform: translateY(-2px); }
.hero-panel { position:relative; isolation:isolate; padding: 10px; border-color: rgba(197,181,255,.23); border-radius: 20px; background: linear-gradient(135deg, rgba(197,181,255,.16), rgba(255,255,255,.018) 36%, rgba(127,224,214,.07)); box-shadow: 0 28px 80px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.13); }
.hero-panel::after { content:""; position:absolute; z-index:-1; inset: 12% -10% -10% 16%; border-radius:50%; background:rgba(124,91,255,.26); filter:blur(55px); }
.hero-image { position:relative; z-index:1; aspect-ratio: 4 / 4.5; border-radius: 13px; filter: saturate(.86) contrast(1.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: transform .7s cubic-bezier(.2,.65,.25,1), filter .5s ease; }
.hero-panel:hover .hero-image { transform: scale(1.025); filter: saturate(1) contrast(1.04); }
.hero-panel figcaption { position:absolute; z-index:2; left:25px; right:25px; bottom:25px; display:flex; justify-content:space-between; color:#fff; font-size:.61rem; font-weight:800; letter-spacing:.15em; text-shadow:0 2px 10px #000; }
.hero-image-label { position:absolute; z-index:2; right:25px; top:25px; color:rgba(255,255,255,.8); font-size:.58rem; font-weight:800; letter-spacing:.17em; line-height:1.7; text-align:right; text-shadow:0 2px 10px #000; }
.hero-orbit { position:absolute; z-index:0; display:block; border:1px solid rgba(197,181,255,.28); border-radius:50%; pointer-events:none; }
.hero-orbit-one { width:116%; aspect-ratio:1; top:-35%; left:-35%; animation: btw-orbit 14s linear infinite; }
.hero-orbit-two { width:72%; aspect-ratio:1; bottom:-27%; right:-25%; border-color:rgba(127,224,214,.21); animation: btw-orbit 10s linear infinite reverse; }
.section { padding: clamp(54px, 7vw, 95px) 0; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { letter-spacing:-.045em; font-size:clamp(1.7rem, 2.35vw, 2.45rem); }
.section-heading::after { content:""; height:1px; flex:1; max-width:110px; margin:0 0 .5em 14px; background:linear-gradient(90deg, var(--btw-violet), transparent); opacity:.65; }
.article-card, .featured-article, .magazine-card { box-shadow: 0 14px 38px rgba(0,0,0,.14); }
.article-card::before, .featured-article::before, .magazine-card::before { content:""; position:absolute; z-index:2; inset:0; pointer-events:none; border-radius:inherit; background:linear-gradient(135deg, rgba(255,255,255,.07), transparent 24%); opacity:.7; }
.article-card:hover, .featured-article:hover, .magazine-card:hover { transform:translateY(-6px); box-shadow:0 24px 60px rgba(0,0,0,.27); }
.card-image-link::after { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(5,7,14,.35), transparent 45%); pointer-events:none; }
.card-category { position:relative; padding-left:10px; }
.card-category::before { content:""; position:absolute; left:0; top:.5em; width:4px; height:4px; border-radius:50%; background:var(--btw-violet); box-shadow:0 0 9px var(--btw-violet); }
.card-title { letter-spacing:-.035em; }
.featured-article .card-body { background:linear-gradient(145deg, rgba(255,255,255,.025), transparent 55%), var(--btw-surface); }
.featured-article .card-title { letter-spacing:-.055em; }
.site-footer { padding:55px 0 35px; background:#080a12; }
.reveal-on-scroll, .article-card, .featured-article, .magazine-card, .faq-item { opacity:0; transform:translateY(20px); transition: opacity .72s cubic-bezier(.2,.65,.25,1), transform .72s cubic-bezier(.2,.65,.25,1); transition-delay:calc(var(--reveal-index, 0) * 70ms + var(--reveal-delay, 0s)); }
.is-revealed { opacity:1; transform:translateY(0); }
@keyframes btw-orbit { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reveal-on-scroll, .article-card, .featured-article, .magazine-card, .faq-item { opacity:1; transform:none; } .hero-orbit { animation:none; } }
@media (max-width:1024px) { .hero-grid { gap:36px; } .hero-image { aspect-ratio:16/10; } }
@media (max-width:640px) { .hero { padding:46px 0 38px; } .hero-grid { gap:20px; } .hero-copy { padding:0; } .hero h1 { font-size:clamp(2.25rem, 11vw, 3.3rem); } .hero-panel { order:0; } .hero-image { aspect-ratio: 16/10; } .hero-panel figcaption { left:18px; right:18px; bottom:18px; } .hero-image-label { top:18px; right:18px; } .section-heading::after { display:none; } .article-card:hover, .featured-article:hover, .magazine-card:hover { transform:translateY(-3px); } }

/* Immersive editorial hero: a mouse/touch spotlight exposes the alternate editorial scene. */
.hero { min-height: min(780px, calc(100svh - 72px)); display:grid; align-items:center; isolation:isolate; background:#090a12; }
.hero-media { position:absolute; inset:0; z-index:-2; overflow:hidden; }
.hero-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.hero-media-base { filter:saturate(.64) brightness(.53) contrast(1.12); transform:scale(1.03); animation:btw-hero-image-in 1.2s cubic-bezier(.2,.65,.25,1) both; }
.hero-media-reveal { filter:saturate(.96) brightness(.8) contrast(1.05); -webkit-mask-image:radial-gradient(circle 0 at -1000px -1000px,#000,transparent); mask-image:radial-gradient(circle 0 at -1000px -1000px,#000,transparent); transition:-webkit-mask-image .1s linear, mask-image .1s linear; }
.hero-media-veil { position:absolute; inset:0; background:linear-gradient(90deg, rgba(5,6,13,.93) 0%, rgba(6,8,16,.74) 43%, rgba(7,9,16,.28) 72%, rgba(7,9,16,.5) 100%), linear-gradient(0deg, rgba(7,9,16,.62), transparent 44%); }
.hero-grid { grid-template-columns:minmax(0, 1fr) minmax(255px, .32fr); align-items:end; min-height:min(620px, calc(100svh - 160px)); justify-self:center; }
.hero-copy { max-width:780px; padding:34px 0; }
.hero h1 { max-width:720px; color:#fff; }
.hero-intro { max-width:570px; color:rgba(244,245,251,.85); }
.hero-panel { justify-self:end; align-self:end; width:min(100%, 310px); margin-bottom:34px; padding:21px; color:#f5f3fa; border-radius:18px; background:rgba(10,11,21,.52); border:1px solid rgba(218,207,255,.2); box-shadow:0 22px 70px rgba(0,0,0,.3); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); overflow:hidden; }
.hero-panel strong { display:block; margin-top:9px; font-size:1.04rem; line-height:1.35; letter-spacing:.1em; }
.hero-panel-label { margin:0; color:var(--btw-violet-2); font-size:.63rem; font-weight:900; letter-spacing:.16em; }
.hero-panel-rule { width:100%; height:1px; margin:18px 0 12px; background:linear-gradient(90deg, var(--btw-violet), transparent); }
.hero-panel > p:not(.hero-panel-label) { margin:0; color:rgba(244,245,251,.7); font-size:.72rem; line-height:1.6; }
.hero-panel-footer { display:flex; justify-content:space-between; margin-top:22px; color:rgba(244,245,251,.64); font-size:.58rem; font-weight:800; letter-spacing:.13em; }
.hero-panel .hero-orbit { z-index:-1; opacity:.7; }
@keyframes btw-hero-image-in { from { opacity:0; transform:scale(1.14); } to { opacity:1; transform:scale(1.03); } }
@media (max-width:900px) { .hero { min-height:680px; } .hero-media img { object-position:58% center; } .hero-grid { grid-template-columns:1fr; align-items:end; min-height:590px; } .hero-panel { display:none; } }
@media (max-width:640px) { .hero { min-height:650px; padding:0; } .hero-media img { object-position:60% center; } .hero-media-veil { background:linear-gradient(90deg, rgba(5,6,13,.92), rgba(6,8,16,.56)), linear-gradient(0deg, rgba(7,9,16,.8), transparent 55%); } .hero-grid { min-height:650px; align-items:end; } .hero-copy { padding:70px 0 43px; } .hero-search-form { backdrop-filter:blur(10px); } }
@media (prefers-reduced-motion:reduce) { .hero-media-base { animation:none; transform:none; } .hero-media-reveal { display:none; } }


/* --- Futuristic Single Post Banner & Sidebar (2030+ Blacktoon Magazine) --- */
.futuristic-entry-header { position: relative; margin: 30px 0 40px; border-radius: 20px; overflow: hidden; min-height: 400px; display: flex; align-items: flex-end; padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 1px solid rgba(155,124,255,0.15); }
.futuristic-hero-bg { position: absolute; inset: 0; z-index: 1; }
.futuristic-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.futuristic-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,16,0.1) 0%, rgba(7,9,16,0.85) 60%, rgba(7,9,16,1) 100%), linear-gradient(90deg, rgba(124,91,255,0.2) 0%, transparent 50%); mix-blend-mode: multiply; }
.futuristic-hero-content { position: relative; z-index: 2; width: 100%; max-width: 800px; }
.futuristic-cat { display: inline-block; padding: 6px 14px; background: rgba(155,124,255,0.15); border: 1px solid rgba(155,124,255,0.3); color: var(--btw-violet-2); border-radius: 4px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 20px; backdrop-filter: blur(8px); }
.futuristic-title { font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; margin: 0 0 24px; line-height: 1.15; letter-spacing: -0.02em; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
.futuristic-meta { display: flex; flex-wrap: wrap; gap: 24px; color: rgba(226,228,240,0.8); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; }
.meta-item { display: flex; align-items: center; gap: 8px; }
.meta-item svg { color: var(--btw-violet-2); }

/* Sidebar Styles */
.futuristic-sidebar { display: flex; flex-direction: column; gap: 40px; }
.futuristic-widget { padding: 28px; background: rgba(18,20,31,0.6); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.futuristic-widget .widget-title { font-size: 0.85rem; font-weight: 900; letter-spacing: 0.2em; color: var(--btw-violet-2); margin: 0 0 24px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(155,124,255,0.15); padding-bottom: 12px; }
.futuristic-widget .widget-title::before { content: ""; display: block; width: 6px; height: 6px; background: var(--btw-violet-2); box-shadow: 0 0 10px var(--btw-violet-2); }
.glitch-text { position: relative; }
.recent-posts-list { display: flex; flex-direction: column; gap: 16px; }
.recent-post-item { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; text-decoration: none; padding: 10px; border-radius: 10px; transition: background 0.3s ease; }
.recent-post-item:hover { background: rgba(155,124,255,0.08); }
.recent-post-thumb { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,0.1); }
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(1.2); transition: filter 0.3s; }
.recent-post-item:hover .recent-post-thumb img { filter: saturate(1.2) contrast(1.1); }
.thumb-placeholder { width: 100%; height: 100%; background: linear-gradient(45deg, #1a1c29, #2a2c42); }
.recent-post-info h4 { font-size: 0.9rem; color: #e2e4f0; margin: 0 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-post-info time { font-size: 0.7rem; color: rgba(226,228,240,0.5); font-family: monospace; letter-spacing: 0.05em; }

.futuristic-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.futuristic-cat-list li a { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.03); border-radius: 8px; color: #a4a7b9; font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: all 0.3s ease; }
.futuristic-cat-list li a:hover { background: rgba(155,124,255,0.1); border-color: rgba(155,124,255,0.3); color: #fff; transform: translateX(4px); }
.cat-count { font-family: monospace; color: var(--btw-violet-2); opacity: 0.8; }

.sub-widget { background: linear-gradient(145deg, rgba(18,20,31,0.8), rgba(7,9,16,0.9)); border: 1px solid rgba(127,224,214,0.15); box-shadow: 0 0 30px rgba(127,224,214,0.05); }
.sub-widget .widget-title { color: #7fe0d6; border-color: rgba(127,224,214,0.15); }
.sub-widget .widget-title::before { background: #7fe0d6; box-shadow: 0 0 10px #7fe0d6; }
.subscribe-box p { font-size: 0.8rem; color: rgba(226,228,240,0.6); margin: 0 0 20px; line-height: 1.6; }
.futuristic-sub-form { display: flex; flex-direction: column; gap: 12px; }
.futuristic-sub-form input { width: 100%; background: rgba(0,0,0,0.4); border: 1px solid rgba(127,224,214,0.2); border-radius: 6px; padding: 12px 16px; color: #fff; font-size: 0.8rem; font-family: monospace; outline: none; transition: border-color 0.3s; }
.futuristic-sub-form input:focus { border-color: #7fe0d6; }
.futuristic-sub-form button { background: rgba(127,224,214,0.1); border: 1px solid #7fe0d6; color: #7fe0d6; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.15em; padding: 12px; border-radius: 6px; cursor: pointer; transition: all 0.3s ease; }
.futuristic-sub-form button:hover { background: #7fe0d6; color: #000; box-shadow: 0 0 20px rgba(127,224,214,0.4); }

@media (max-width: 768px) {
    .futuristic-entry-header { padding: 30px 20px; min-height: 300px; }
    .futuristic-title { font-size: 1.8rem; }
    .futuristic-sidebar { margin-top: 40px; }
}


/* --- Futuristic Newsletter Banner in Magazine Section --- */
.futuristic-newsletter-banner { margin-top: 60px; padding: 45px 50px; background: linear-gradient(135deg, rgba(18,20,31,0.8), rgba(7,9,16,0.9)); border: 1px solid rgba(127,224,214,0.2); border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 40px rgba(127,224,214,0.03); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.futuristic-newsletter-banner::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(127,224,214,0.05), transparent 40%); pointer-events: none; }
.futuristic-newsletter-banner .newsletter-content { position: relative; z-index: 2; }
.futuristic-newsletter-banner h3 { color: #7fe0d6; font-size: 1.8rem; margin: 0 0 16px; letter-spacing: -0.02em; }
.futuristic-newsletter-banner p { color: rgba(226,228,240,0.7); font-size: 0.95rem; line-height: 1.7; margin: 0; }
.futuristic-newsletter-banner .newsletter-form { position: relative; z-index: 2; }
.newsletter-form .input-group { display: flex; gap: 12px; }
.newsletter-form input { flex: 1; padding: 18px 22px; font-size: 0.95rem; border-radius: 8px; }
.newsletter-form button { padding: 0 28px; white-space: nowrap; font-size: 0.9rem; border-radius: 8px; }
.newsletter-form .privacy-note { margin-top: 14px; font-size: 0.75rem; color: rgba(127,224,214,0.5); font-family: monospace; letter-spacing: 0.05em; display: flex; align-items: center; gap: 8px; }
.newsletter-form .privacy-note::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #7fe0d6; box-shadow: 0 0 8px #7fe0d6; }

@media (max-width: 900px) {
    .futuristic-newsletter-banner { grid-template-columns: 1fr; padding: 40px 30px; gap: 24px; text-align: center; }
    .newsletter-form .privacy-note { justify-content: center; }
}
@media (max-width: 640px) {
    .newsletter-form .input-group { flex-direction: column; }
    .newsletter-form button { padding: 18px; }
    .futuristic-newsletter-banner h3 { font-size: 1.5rem; }
}
