/*
Theme Name: GeneratePress Child — JADISS
Theme URI: https://krblog.jadiss-lab.com/
Description: JADISS Blog child theme (KR/EN) — brand logo, hero, readable marketing layout
Author: JADISS
Template: generatepress
Version: 1.0.0
Text Domain: jadiss-blog
*/

:root {
  --jadiss-ink: #0c1428;
  --jadiss-muted: #4a5d73;
  --jadiss-line: #d7e0ea;
  --jadiss-paper: #f7fafc;
  --jadiss-cyan: #0a7ea4;
  --jadiss-mint: #1a9b6c;
  --jadiss-hero-a: #0c1428;
  --jadiss-hero-b: #143552;
}

body {
  color: var(--jadiss-ink);
}

.site-header {
  border-bottom: 1px solid var(--jadiss-line);
}

.main-navigation .main-nav ul li a {
  font-weight: 600;
}

.site-logo img,
.custom-logo {
  max-height: 44px;
  width: auto;
}

/* Full-bleed hero on front page */
.jadiss-hero {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  min-height: min(72vh, 560px);
  display: grid;
  align-items: end;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(10, 126, 164, 0.35), transparent 60%),
    radial-gradient(ellipse 45% 40% at 10% 90%, rgba(26, 155, 108, 0.25), transparent 55%),
    linear-gradient(145deg, var(--jadiss-hero-a) 0%, var(--jadiss-hero-b) 55%, #0a1e33 100%);
  overflow: hidden;
}

.jadiss-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-chart.svg");
  background-repeat: no-repeat;
  background-position: right 4% bottom 8%;
  background-size: min(46vw, 520px);
  opacity: 0.9;
  pointer-events: none;
}

.jadiss-hero__inner {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 4.5rem 0 3.25rem;
}

.jadiss-hero__brand {
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b7d3ff;
  margin-bottom: 1rem;
}

.jadiss-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 14ch;
  color: #fff;
}

.jadiss-hero__lead {
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #d5e4f7;
  margin: 0 0 1.75rem;
}

.jadiss-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.jadiss-hero__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.jadiss-hero__actions a:hover {
  transform: translateY(-1px);
}

.jadiss-btn-primary {
  background: linear-gradient(90deg, #0a7ea4, #1a9b6c);
  color: #fff !important;
}

.jadiss-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff !important;
  background: transparent;
}

.jadiss-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.jadiss-section {
  margin-top: 2.75rem;
}

.jadiss-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
}

.jadiss-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.jadiss-pillars li {
  background: var(--jadiss-paper);
  border-top: 3px solid var(--jadiss-cyan);
  padding: 1.15rem 1.1rem 1.25rem;
}

.jadiss-pillars strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.jadiss-pillars span {
  color: var(--jadiss-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.jadiss-note {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--jadiss-line);
  color: var(--jadiss-muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .jadiss-hero::after {
    opacity: 0.28;
    background-position: right -10% bottom 0;
  }

  .jadiss-pillars {
    grid-template-columns: 1fr;
  }

  .jadiss-hero h1 {
    max-width: none;
  }
}

/* Soft entrance */
@keyframes jadiss-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.jadiss-hero__inner {
  animation: jadiss-rise 0.7s ease both;
}

.jadiss-pillars li {
  animation: jadiss-rise 0.6s ease both;
}

.jadiss-pillars li:nth-child(2) { animation-delay: 0.08s; }
.jadiss-pillars li:nth-child(3) { animation-delay: 0.16s; }

/* ── AdSense (platform layout: horizontal + sidebar + interstitial) ── */
.adsense-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.adsense-horizontal {
  margin: 0 0 1rem;
  min-height: 140px;
}

.adsense-sidebar {
  position: sticky;
  top: 1rem;
  width: 200px;
  flex-shrink: 0;
  min-height: 600px;
}

.adsense-wrap ins.adsbygoogle {
  background: rgba(10, 126, 164, 0.06);
  border: 1px dashed var(--jadiss-line, #d7e0ea);
  border-radius: 8px;
}

.adsense-wrap ins.adsbygoogle[data-ad-pushed="1"] {
  background: transparent;
  border-color: transparent;
}

.jadiss-ads-on .site-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.jadiss-ads-on .content-area {
  flex: 1;
  min-width: 0;
  max-width: 1100px;
}

.jadiss-ads-on .sidebar {
  flex: 0 0 200px;
  width: 200px;
}

.jadiss-ads-on .inside-right-sidebar {
  padding-top: 0.25rem;
}

@media (max-width: 900px) {
  .jadiss-ads-on .sidebar {
    display: none;
  }
}

.jadiss-ad-interstitial {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.jadiss-ad-interstitial[hidden] {
  display: none !important;
}

.jadiss-ad-interstitial__panel {
  background: #1a2332;
  border: 1px solid #243044;
  border-radius: 12px;
  padding: 1rem 1.25rem 1.25rem;
  max-width: 720px;
  width: 100%;
  text-align: center;
  color: #e7ecf1;
}

.jadiss-ad-interstitial__label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: #8b98a8;
}

.jadiss-ad-interstitial__actions {
  margin-top: 1rem;
  min-height: 2rem;
}

.jadiss-ad-interstitial__timer {
  color: #a8b3c1;
  font-size: 0.9rem;
}

.jadiss-ad-interstitial__close {
  padding: 0.45rem 1.25rem;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

body.jadiss-ad-interstitial-open {
  overflow: hidden;
}
