/* Ενεργειακές Πέτρες — theme */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #1f2a27;
  --muted: #5d6b67;
  --border: #e6e1d8;
  --forest: #16302b;
  --forest-2: #224a41;
  --accent: #6d4fa3;        /* αμέθυστος */
  --accent-2: #2f9a92;      /* τιρκουάζ */
  --accent-soft: #f1ecf8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 48, 43, .06), 0 8px 24px rgba(22, 48, 43, .08);
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Noto Serif", Georgia, "Times New Roman", serif;
  --max: 1100px;
  --prose: 740px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a18;
    --surface: #15231f;
    --text: #e7ece9;
    --muted: #a3b1ac;
    --border: #2a3b36;
    --accent: #b49ae6;
    --accent-2: #5cc9c0;
    --accent-soft: #241f33;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 48, 43, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { flex: none; display: flex; }
.brand { background: #fff; border-radius: 8px; padding: 4px 8px; }
.brand img { display: block; }

.main-nav { flex: 1; min-width: 0; }
.main-nav ul {
  display: flex; gap: 4px; margin: 0; padding: 8px 0; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.main-nav ul::-webkit-scrollbar { display: none; }
@media (max-width: 1180px) {
  .main-nav ul { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}
.main-nav a {
  display: block; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px;
  color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14.5px;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.main-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .14); }

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  .brand { justify-content: center; }
  .main-nav ul { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(109, 79, 163, .45), transparent 60%),
    radial-gradient(900px 400px at 0% 120%, rgba(47, 154, 146, .35), transparent 60%),
    linear-gradient(160deg, var(--forest) 0%, var(--forest-2) 100%);
  color: #f3f1ec;
  padding: 36px 0 72px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.15; margin: 6px auto 14px; max-width: 18ch;
  letter-spacing: -.01em;
}
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); max-width: 60ch; margin: 0 auto 10px; color: rgba(243, 241, 236, .88); }
.hero .meta { font-size: 14px; color: rgba(243, 241, 236, .65); margin: 8px 0 0; }
.eyebrow {
  display: inline-block; margin: 18px 0 0;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: #cbb8f0;
}

.breadcrumb ol {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  margin: 0; padding: 0; list-style: none; font-size: 14px; color: rgba(243, 241, 236, .7);
}
.breadcrumb li + li::before { content: "›"; margin-right: 4px; opacity: .6; }
.breadcrumb a { color: rgba(243, 241, 236, .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

.btn {
  display: inline-block; margin-top: 18px;
  padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(135deg, #8a6bc4, var(--accent-2));
  color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }

.banner { margin: -44px auto 8px; max-width: var(--prose); }
.banner img {
  display: block; width: 100%;
  border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 755 / 162; object-fit: cover;
}

/* Περιεχόμενο άρθρου (HTML από τη βάση) */
.prose { max-width: var(--prose); margin: 32px auto; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-head); line-height: 1.3; color: var(--text);
  margin: 1.8em 0 .6em;
}
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose h4 { font-size: 19px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose blockquote {
  margin: 1.5em 0; padding: 14px 20px;
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
}
.prose img { border-radius: 10px; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.5em 0;
  font-size: 15.5px; background: var(--surface);
  border-radius: 10px; overflow: hidden; box-shadow: var(--shadow);
}
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--accent-soft); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

/* Κλάση που χρησιμοποιείται μέσα στο HTML της βάσης */
.image-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.image-row img { max-width: 200px; height: auto; border-radius: 6px; }

/* Κοινοποίηση */
.share { max-width: var(--prose); margin: 40px auto; padding-top: 24px; border-top: 1px solid var(--border); }
.share h2 { font-family: var(--font-head); font-size: 20px; margin: 0 0 12px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 600;
  transition: opacity .15s ease, transform .15s ease;
}
.share-btn:hover { color: #fff; opacity: .9; transform: translateY(-1px); }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.share-fb { background: #1877f2; }
.share-x { background: #111; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.share-wa { background: #1fa855; }
.share-pin { background: #e60023; }

/* Προηγούμενος / επόμενος */
.pager {
  max-width: var(--prose); margin: 0 auto 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.pager a {
  display: block; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text); font-weight: 600;
  transition: border-color .15s ease;
}
.pager a:hover { border-color: var(--accent); }
.pager span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.pager-next { grid-column: 2; text-align: right; }

/* Πλέγμα λίθων */
.stones-section { margin: 48px 0 64px; }
.stones-section h2 { font-family: var(--font-head); font-size: 28px; text-align: center; margin: 0 0 24px; }
.stone-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; margin: 0; padding: 0; list-style: none;
}
.stone-card {
  --gem-h: 275;
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); text-decoration: none; font-size: 15.5px; line-height: 1.35;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.stone-card:hover {
  color: var(--text); transform: translateY(-2px);
  border-color: hsl(var(--gem-h) 45% 60%); box-shadow: var(--shadow);
}
.stone-card.is-current { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.gem {
  flex: none; width: 28px; height: 28px;
  clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%);
  background: linear-gradient(140deg,
    hsl(var(--gem-h) 70% 85%) 0%,
    hsl(var(--gem-h) 55% 58%) 45%,
    hsl(var(--gem-h) 50% 38%) 100%);
}

/* Διάταξη με πλαϊνή στήλη (300x600) σε μεγάλες οθόνες */
.sidebar { display: none; }
@media (min-width: 1100px) {
  .layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px; align-items: start;
  }
  .sidebar { display: block; align-self: stretch; padding-top: 32px; }
  .layout .prose, .layout .share, .layout .pager, .layout .banner, .layout .ad-top { margin-left: 0; margin-right: 0; }
}

/* Banners */
.ad {
  display: block; text-align: center;
  margin: 32px auto; max-width: 970px;
}
.ad a {
  display: inline-block; max-width: 100%; line-height: 0;
  border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ad a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22, 48, 43, .16); }
.ad img { display: block; max-width: 100%; height: auto; }
.ad-label {
  display: block; margin-bottom: 6px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.ad-728x90 { max-width: var(--prose); margin: 24px auto; }
.ad-inline { margin: 2em 0; }
.ad-300x600 { margin: 0; }
.ad-sticky { position: sticky; top: 84px; }

/* Footer */
.site-footer {
  background: var(--forest); color: rgba(243, 241, 236, .75);
  padding: 32px 0; text-align: center; font-size: 14.5px;
}
.site-footer a { color: #fff; }
.site-footer .disclaimer { font-size: 13px; opacity: .75; max-width: 60ch; margin: 0 auto 10px; }
.legacy-footer { margin-bottom: 16px; }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero { padding: 24px 0 60px; }
  .banner { margin-top: -36px; }
  .prose h2 { font-size: 24px; }
  .prose table { display: block; overflow-x: auto; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { grid-column: 1; }
  .stone-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stone-card { padding: 10px; font-size: 14.5px; gap: 8px; }
  .gem { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .share, .pager, .stones-section, .site-footer { display: none; }
  .hero { background: none; color: #000; padding: 0; }
}
