/*
Theme Name: SwipeSample Article
Theme URI: https://ifanzaimgreel.com/
Author: SwipeSample
Description: Dark neon editorial theme for SwipeSample feature articles.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: swipesample-article
*/

:root {
  --bg: #050509;
  --panel: rgba(12, 12, 20, 0.72);
  --panel-strong: rgba(14, 14, 24, 0.92);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.13);
  --hot: #ff2fab;
  --pink: #ff65c8;
  --violet: #8f4dff;
  --cyan: #76f7ff;
  --radius: 18px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 2%, rgba(255, 47, 171, 0.22), transparent 29%),
    radial-gradient(circle at 86% 6%, rgba(143, 77, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #080812 0%, #050509 42%, #07070d 100%);
  color: var(--text);
  font-family: Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 9, 0.74);
  backdrop-filter: blur(22px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1120px, calc(100% - 28px));
  min-height: 66px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 950;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(145deg, var(--hot), var(--violet));
  box-shadow: 0 0 22px rgba(255, 47, 171, 0.32);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
}

.site-nav a,
.nav-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
}

.nav-cta {
  background: linear-gradient(135deg, rgba(255, 47, 171, 0.92), rgba(143, 77, 255, 0.86));
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 47, 171, 0.22);
}

.page-wrap {
  position: relative;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.hero {
  display: grid;
  gap: 12px;
  padding: 28px 0 24px;
}

.eyebrow {
  margin: 0;
  color: var(--pink);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.archive-title,
.article-title {
  max-width: 880px;
  margin: 0;
  font-size: clamp(32px, 8vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 0 36px rgba(255, 47, 171, 0.22);
}

.hero p,
.archive-description {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hot), var(--violet));
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 0 26px rgba(255, 47, 171, 0.28);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 0 34px rgba(143, 77, 255, 0.08);
  backdrop-filter: blur(18px);
}

.post-card a {
  display: grid;
  height: 100%;
  grid-template-rows: 160px 1fr;
}

.post-thumb {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 47, 171, 0.34), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(143, 77, 255, 0.24));
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 15px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 850;
}

.post-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.32;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.article-main,
.sidebar-card,
.page-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.article-main {
  overflow: hidden;
}

.article-cover {
  min-height: 220px;
  background:
    radial-gradient(circle at 40% 20%, rgba(255, 47, 171, 0.34), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(143, 77, 255, 0.22));
}

.article-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-header,
.entry-content,
.page-card {
  padding: clamp(20px, 5vw, 34px);
}

.article-header {
  display: grid;
  gap: 12px;
}

.article-title {
  font-size: clamp(30px, 7vw, 56px);
}

.entry-content {
  padding-top: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: 580;
}

.entry-content h2,
.entry-content h3 {
  margin: 34px 0 10px;
  line-height: 1.22;
}

.entry-content p {
  margin: 0 0 1.2em;
}

.entry-content a {
  color: #ffd8f2;
  text-decoration: underline;
  text-decoration-color: rgba(255, 47, 171, 0.55);
  text-underline-offset: 4px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.2em;
}

.entry-content blockquote {
  margin: 24px 0;
  padding: 18px;
  border-left: 3px solid var(--hot);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
}

.fanza-picks {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 34px 0;
  padding: clamp(14px, 4vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 47, 171, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(5, 5, 9, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36), 0 0 34px rgba(143, 77, 255, 0.13);
}

.fanza-picks::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.16;
  pointer-events: none;
}

.fanza-picks-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.fanza-picks-head h2 {
  margin: 0;
  font-size: clamp(21px, 5vw, 30px);
  line-height: 1.18;
}

.fanza-picks-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.fanza-reel-strip {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.fanza-picks-single {
  max-width: 430px;
}

.fanza-picks-single .fanza-reel-card {
  width: min(330px, 86vw);
  max-width: 360px;
}

.fanza-reel-card {
  position: relative;
  display: block;
  flex: 0 0 min(270px, 82vw);
  min-height: 480px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #050509;
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), inset 0 0 0 7px rgba(0, 0, 0, 0.38);
  scroll-snap-align: start;
  text-decoration: none !important;
  transform: translateZ(0);
}

.fanza-reel-image-link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.fanza-reel-card:hover {
  border-color: rgba(255, 47, 171, 0.38);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42), 0 0 28px rgba(255, 47, 171, 0.18);
}

.fanza-pick-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.fanza-pick-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.fanza-reel-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent 38%, rgba(0, 0, 0, 0.84)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 44%, rgba(0, 0, 0, 0.08));
}

.fanza-reel-card strong {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 76px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #fff;
  font-size: 14px;
  line-height: 1.42;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.84);
}

.fanza-reel-card-actions {
  position: absolute;
  left: 12px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fanza-pick-cta {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hot), var(--violet));
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 0 18px rgba(255, 47, 171, 0.28);
  text-decoration: none !important;
}

.fanza-pick-cta-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 12, 24, 0.72);
  box-shadow: 0 0 16px rgba(89, 209, 255, 0.22);
}

.fanza-reel-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none !important;
}

.sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.sidebar-card {
  padding: 18px;
}

.sidebar-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.sidebar-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.reel-search-card {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 47, 171, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.reel-search-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1.18;
}

.reel-search-button {
  width: 100%;
  min-height: 58px;
  border-radius: 16px;
  font-size: 15px;
  box-shadow: 0 0 30px rgba(255, 47, 171, 0.3);
}

.related-card {
  display: grid;
  gap: 12px;
}

.related-list {
  display: grid;
  gap: 10px;
}

.related-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.related-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.45;
}

.related-item small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 850;
}

.post-nav,
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.post-nav a,
.pagination a,
.pagination span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 9, 0.68);
}

.footer-inner {
  display: grid;
  gap: 8px;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.empty-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

@media (max-width: 860px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .post-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .fanza-reel-card {
    flex-basis: min(330px, 86vw);
    min-height: 560px;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 520px) {
  .header-inner {
    width: min(100% - 20px, 1120px);
  }

  .brand span:last-child {
    max-width: 156px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-wrap {
    width: min(100% - 20px, 1120px);
    padding-top: 22px;
  }

  .hero {
    padding-top: 18px;
  }

  .post-card a {
    grid-template-rows: 148px 1fr;
  }
}
