/*
 * Jucheware theme.
 * The colours of the whole shop are set in the theme settings (accent, background, card, text);
 * this file adds the Juche look on top: flag stripes, sunburst, emblem hero, ribbon, feature rows.
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@800;900&family=Noto+Sans+KR:wght@700;900&display=swap');

:root {
  --j-red: #be1e2d;
  --j-red-hi: #ed1c27;
  --j-blue: #024fa2;
  --j-blue-hi: #4a90ec;
  --j-gold: #ffb347;
  --j-line: rgba(190, 30, 45, .32);
}

::selection { background: var(--j-red); color: #fff; }
html { scrollbar-color: var(--j-red) #0d0a0c; }

/* ---- flag stripes (top and bottom of every page) and the faint sunburst behind it ---- */
.juche-flag {
  height: 12px;
  background: linear-gradient(var(--j-blue) 0 29%, #fff 29% 38%, var(--j-red) 38% 62%, #fff 62% 71%, var(--j-blue) 71%);
}
.juche-flag-bottom { height: 8px; }
.juche-backdrop {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(190, 30, 45, .22), transparent 70%);
}
.juche-backdrop::before {
  content: ""; position: absolute; left: 50%; top: -60vmax; width: 200vmax; height: 200vmax; translate: -50% 0;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(190, 30, 45, .07) 0 3deg, transparent 3deg 6deg);
  mask: radial-gradient(circle, #000 10%, transparent 55%);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 55%);
}

/* ---- cards everywhere: a red hairline instead of the grey one ---- */
.bg-card.border, .bg-background.border { border-color: var(--j-line) !important; }

/* section titles of the built-in components */
.component h2.border-l-4 { text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }

/* ---- header ---- */
.juche-header > .bg-card {
  background: linear-gradient(100deg, rgba(58, 14, 21, .85), rgba(22, 16, 20, .95) 55%) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 -2px 0 rgba(190, 30, 45, .55);
}
.juche-wordmark { letter-spacing: .08em; font-weight: 900; text-transform: uppercase; line-height: 1.05; }
.juche-header-motto {
  font-family: 'Noto Sans KR', sans-serif; font-size: 11px; letter-spacing: .3em; color: #ffb3a8; margin-top: 2px;
}
.juche-header nav a, .juche-header nav button { transition: background-color .15s, color .15s, transform .15s; }
.juche-header nav a:hover, .juche-header nav button:hover { transform: translateY(-1px); }
.juche-header nav a.text-accent-500 {
  background: var(--j-red) !important; color: #fff !important; border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(190, 30, 45, .35);
}

/* ---- hero ---- */
.juche-hero-wrap { margin-top: 1.5rem; }
.juche-hero {
  position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--j-line);
  background: linear-gradient(#14070b, #3a0e15 72%, #1a0a0e);
}
.juche-rays {
  position: absolute; left: 50%; bottom: -55%; width: 260%; aspect-ratio: 1; translate: -50% 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(190, 30, 45, .34) 0 3.2deg, transparent 3.2deg 6.4deg);
  mask: radial-gradient(circle, #000 16%, transparent 60%);
  -webkit-mask: radial-gradient(circle, #000 16%, transparent 60%);
  animation: juche-turn 120s linear infinite;
}
.juche-sun {
  position: absolute; left: 50%; bottom: -12%; width: 560px; height: 560px; translate: -50% 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 170, 60, .5), rgba(255, 120, 40, .15) 45%, transparent 68%);
}
@keyframes juche-turn { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .juche-rays, .juche-ribbon-track { animation: none !important; } }

.juche-emblem { filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .55)); }
.juche-title {
  font-size: clamp(44px, 8vw, 92px); line-height: 1; font-weight: 900; letter-spacing: .05em; color: #fff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .55);
}
.juche-tagline { font-size: clamp(17px, 2.3vw, 22px); color: #f6d9d3; }
.juche-motto {
  font-family: 'Noto Sans KR', sans-serif; font-weight: 700; letter-spacing: .32em; font-size: 13px; color: #ffb3a8;
}

.juche-btn {
  display: inline-block; padding: 12px 26px; border-radius: 9px; font-weight: 700; font-size: 15px; color: #fff;
  background: var(--j-red); border: 1px solid transparent; transition: background-color .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 8px 24px rgba(190, 30, 45, .35);
}
.juche-btn:hover { background: var(--j-red-hi); transform: translateY(-1px); }
.juche-btn-ghost { background: rgba(0, 0, 0, .15); border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.juche-btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.juche-shot {
  max-width: 1000px; margin: 0 auto; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 0 6px rgba(190, 30, 45, .14);
}
.juche-shot img { display: block; }

/* the scrolling slogan ribbon under the hero */
.juche-ribbon {
  margin-top: 14px; overflow: hidden; border-radius: 10px; background: var(--j-red);
  border-top: 3px solid #fff; border-bottom: 3px solid #fff; box-shadow: 0 0 0 3px var(--j-blue);
}
.juche-ribbon-track {
  display: flex; width: max-content; gap: 26px; padding: 9px 0; white-space: nowrap;
  font-weight: 900; letter-spacing: .22em; text-transform: uppercase; color: #fff; font-size: 14px;
  animation: juche-scroll 40s linear infinite;
}
.juche-ribbon-star { color: #ffd34d; }
@keyframes juche-scroll { to { transform: translateX(-50%); } }

/* ---- feature rows ---- */
.juche-eyebrow {
  color: var(--j-blue-hi); font-weight: 700; letter-spacing: .2em; font-size: 13px; text-transform: uppercase;
}
.juche-eyebrow::before {
  content: ""; display: inline-block; width: 4px; height: 14px; background: var(--j-red-hi); margin-right: 10px;
  vertical-align: -2px; border-radius: 2px;
}
.juche-h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 12px 0 14px; color: #fff; font-weight: 800; }
.juche-lead { max-width: 680px; font-size: 18px; color: rgba(var(--cl-t-primary), .62); }
.juche-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; margin-top: 64px; }
.juche-row-flip { grid-template-columns: 1.25fr 1fr; }
.juche-row-flip .juche-row-text { order: 2; }
.juche-row-text h3 {
  font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 12px;
}
.juche-row-text h3::before { content: "\2605"; color: var(--j-red-hi); font-size: 22px; }
.juche-row-text p { color: rgba(var(--cl-t-primary), .66); font-size: 17px; line-height: 1.65; }
.juche-row-img {
  width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 4px rgba(190, 30, 45, .1);
}
@media (max-width: 860px) {
  .juche-row, .juche-row-flip { grid-template-columns: 1fr; gap: 22px; margin-top: 44px; }
  .juche-row-flip .juche-row-text { order: 0; }
}

/* ---- product cards: a red bar on top, lift and glow on hover ---- */
a.group.bg-card {
  position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.group.bg-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, var(--j-blue), var(--j-red-hi) 30%, var(--j-red-hi) 70%, var(--j-blue));
}
a.group.bg-card:hover {
  transform: translateY(-3px); border-color: var(--j-red-hi) !important;
  box-shadow: 0 18px 50px rgba(190, 30, 45, .25);
}

/* ---- footer ---- */
.juche-footer { background: linear-gradient(#120b0e, #1e0a0f) !important; }