/*
Theme Name: Svit Navkolo
Theme URI: https://svitnavkolo.com.ua
Author: Svit Navkolo
Description: Пізнавальний сайт для дітей і батьків про світ навколо нас: історія, наука, природа, Всесвіт.
Version: 1.2
License: GNU General Public License v2 or later
Text Domain: svitnavkolo
*/

/* ================= GLOBE PALETTE ================= */
:root{
  --bg: #f6fbff;            /* світлий “небо/хмари” */
  --surface: #ffffff;       /* картки */
  --text: #0b1f2a;          /* темний океан */
  --muted: #46606d;

  --ocean-700: #0b3a5a;     /* глибокий океан */
  --ocean-600: #0f4c73;
  --ocean-500: #1673a6;     /* основний */
  --aqua-400:  #22b3c7;     /* бірюза */
  --land-500:  #2f7d4a;     /* суша/зелень */
  --sand-400:  #e8d3a2;     /* піски/берег */
  --ice-300:   #dff3ff;     /* лід/хмари */

  --radius: 16px;
  --border: #dbe8f2;
  --shadow: 0 10px 30px rgba(11,58,90,.08);
}

/* ================= RESET / BASE ================= */
*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  color: var(--text);
  line-height: 1.7;

  background:
    radial-gradient(1200px 700px at 20% 0%, var(--ice-300), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(34,179,199,.18), transparent 55%),
    linear-gradient(180deg, var(--bg), #ffffff 60%);
}

img{ max-width: 100%; height: auto; }
a{ color: var(--ocean-600); text-decoration: none; }
a:hover{ color: var(--aqua-400); text-decoration: underline; }

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ================= HEADER ================= */
header.site-header{
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
}

.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  gap: 16px;
}

.site-title{
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .2px;
}

.site-title a{
  color: var(--ocean-600);
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.main-nav ul{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.main-nav li{ margin: 0; }

.main-nav a{
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover{
  color: var(--ocean-600);
  background: rgba(34,179,199,.10);
  text-decoration: none;
}

/* ================= HERO ================= */
.hero{
  padding: 72px 0;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: var(--muted);
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.hero h1{
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 14px 0 14px;
}

.hero p{
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
  max-width: 720px;
}

/* A pure-CSS globe (no image needed) */
.globe{
  width: 320px;
  height: 320px;
  border-radius: 999px;
  margin-left: auto;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 45%),
    radial-gradient(circle at 62% 70%, rgba(47,125,74,.85), transparent 42%),
    radial-gradient(circle at 40% 55%, rgba(232,211,162,.55), transparent 45%),
    radial-gradient(circle at 50% 50%, var(--ocean-500), var(--ocean-700));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.globe:before{
  content:"";
  position: absolute;
  inset: -40px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.07) 0px,
      rgba(255,255,255,.07) 10px,
      transparent 10px,
      transparent 22px
    );
  transform: rotate(12deg);
  opacity: .55;
}

.globe:after{
  content:"";
  position: absolute;
  inset: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 0 1px rgba(11,58,90,.06);
}

/* ================= SECTIONS ================= */
.section{
  padding: 56px 0;
}

.section h2{
  font-size: 1.8rem;
  margin: 0 0 28px;
}

.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 10px 25px rgba(11,58,90,.06);
}

.card h3{
  margin: 0 0 10px 0;
  font-size: 1.15rem;
}

.card p{
  margin: 0;
  color: var(--muted);
}

.card a{
  font-weight: 800;
  color: var(--ocean-600);
}

/* ================= ARTICLE (single.php) ================= */
.article-content{
  max-width: 760px;
  margin: 0 auto;
}

.article-content h1{
  margin: 0 0 14px;
  line-height: 1.2;
}

.article-section{
  margin-bottom: 44px;
}

/* Gutenberg content polish */
.article-content .wp-block-image{
  margin: 18px 0;
}
.article-content .wp-block-image figcaption{
  color: var(--muted);
  font-size: .95rem;
}
.article-content p{
  margin: 0 0 14px;
}

.questions{
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border);
  border-left: 5px solid var(--aqua-400);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(11,58,90,.05);
}

.questions h3{
  margin: 0 0 10px;
}

.questions ul{
  margin: 0;
  padding-left: 18px;
}

.questions li{
  margin: 8px 0;
}

/* ================= FOOTER ================= */
footer.site-footer{
  border-top: 1px solid var(--border);
  padding: 30px 0;
  font-size: 0.95rem;
  color: var(--muted);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px){
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .globe{
    margin: 26px auto 0;
  }
  .hero h1{
    font-size: 2rem;
  }
}

@media (max-width: 520px){
  .site-header .container{
    align-items: flex-start;
    flex-direction: column;
  }
  .main-nav a{
    padding: 7px 10px;
  }
}
