/*
Theme Name: Sosialismos
Theme URI: https://sosialismos.gr
Description: Custom theme για το Sosialismos.gr
Version: 1.0
Author: Sosialismos.gr
Text Domain: sosialismos
*/

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg:      #000000;
  --surface: #0d0d0d;
  --border:  #141414;
  --red:     #e63946;
  --red-dim: #2a0a0d;
  --gold:    #c0392b;
  --text:    #f0eee8;
  --muted:   #5a5850;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════════
   INTRO OVERLAY
═══════════════════════════════════════════ */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.6s ease;
}
#intro-overlay.fade-out { opacity: 0; pointer-events: none; }

.intro-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  animation: introPulse 2.8s ease-in-out infinite;
}
@keyframes introPulse {
  0%,100% { opacity:.75; transform:scale(1); }
  50% { opacity:1; transform:scale(1.05); filter:drop-shadow(0 0 40px rgba(230,57,70,.6)); }
}
.intro-skip {
  position: absolute;
  bottom: 2rem; right: 2rem;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); cursor: pointer;
  border: 1px solid #1c1c1c; padding: 7px 16px; border-radius: 2px;
  background: none; font-family: 'Cormorant Garamond', serif;
  transition: all .2s;
}
.intro-skip:hover { color: var(--text); border-color: #333; }

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
}
.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  width: 36px; height: 36px;
  object-fit: contain;
}
.nav-logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: .1em;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.current,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--text); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 35%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(230,57,70,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-logo {
  width: 150px; height: 150px;
  object-fit: contain;
  margin-bottom: 2.5rem;
  animation: heroPulse 4s ease-in-out infinite;
}
@keyframes heroPulse {
  0%,100% { opacity:.85; filter:drop-shadow(0 0 0 transparent); }
  50% { opacity:1; filter:drop-shadow(0 0 50px rgba(230,57,70,.45)); }
}
.hero-slogan {
  font-family: 'GFS Didot', serif;
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  letter-spacing: .01em;
}
.hero-slogan .line1 { color: var(--text); display:block; }
.hero-slogan .line2 {
  display: block;
  background: linear-gradient(135deg, #c0392b 0%, #96150e 50%, #7b0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-rule {
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, transparent, rgba(230,57,70,.6), transparent);
  margin: 2.2rem auto;
}

/* ═══════════════════════════════════════════
   VIDEO
═══════════════════════════════════════════ */
.video-section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 5rem;
}
.video-frame { position: relative; overflow: hidden; }
.video-frame::before, .video-frame::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 100px;
  z-index: 2; pointer-events: none;
}
.video-frame::before { top:0; background:linear-gradient(to bottom,rgba(0,0,0,.55),transparent); }
.video-frame::after  { bottom:0; background:linear-gradient(to top,rgba(0,0,0,.55),transparent); }
.video-frame video,
.video-frame iframe {
  display: block;
  width: 100%;
  background: #000;
}
.video-frame .yt-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.video-frame .yt-wrap iframe {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  border:none;
}
#yt-click-overlay {
  position: absolute;
  inset: 0; z-index: 5;
  cursor: pointer;
}
#yt-mute-btn {
  position: absolute;
  bottom: 1.2rem; right: 1.2rem;
  z-index: 10;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(240,238,232,.15);
  color: rgba(240,238,232,.65);
  transition: all .2s;
}

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.site-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}
.section-head-title {
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text);
  display: flex; align-items: center; gap: 14px;
}
.section-head-title::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--red);
}
.see-all {
  font-family: 'Cormorant Garamond', serif;
  font-size: .88rem;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color .2s;
}
.see-all:hover { color: var(--text); }

/* ═══════════════════════════════════════════
   FEATURED ARTICLE
═══════════════════════════════════════════ */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  margin-bottom: 1.5px;
}
.featured-img {
  min-height: 360px;
  background: #050505;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.featured-img img.cover { width:100%; height:100%; object-fit:cover; opacity:.7; }
.featured-img .feat-emblem { width:130px; height:130px; object-fit:contain; opacity:.25; }
.featured-body {
  padding: 3rem;
  display: flex; flex-direction: column; justify-content: center;
  background: #000;
}
.feat-cat {
  font-family: 'Cinzel', serif;
  font-size: .62rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1.2rem;
}
.feat-title {
  font-family: 'Cinzel', serif;
  font-size: 1.7rem; font-weight: 700;
  line-height: 1.2; letter-spacing: .02em;
  margin-bottom: 1.2rem;
  transition: color .2s;
}
.feat-title:hover { color: var(--red); }
.feat-excerpt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem; font-weight: 300;
  color: var(--muted); line-height: 1.7;
  margin-bottom: 2rem;
}
.feat-read {
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem; letter-spacing: .12em;
  color: var(--red);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .2s;
}
.feat-read:hover { gap: 14px; }
.feat-meta {
  font-family: 'Cormorant Garamond', serif;
  font-size: .85rem; color: var(--muted);
  margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════
   ARTICLES GRID
═══════════════════════════════════════════ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: #111;
}
.article-card {
  background: #000;
  cursor: pointer;
  transition: background .25s;
}
.article-card:hover { background: #080808; }
.article-card .card-cover {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
  background: #080808;
}
.card-inner { padding: 2rem; }
.card-cat {
  font-family: 'Cinzel', serif;
  font-size: .58rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin-bottom: .9rem;
}
.card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.02rem; font-weight: 600;
  line-height: 1.3; letter-spacing: .02em;
  margin-bottom: .8rem;
}
.card-excerpt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 300;
  color: var(--muted); line-height: 1.6;
  margin-bottom: 1.2rem;
}
.card-meta {
  font-family: 'Cormorant Garamond', serif;
  font-size: .82rem; color: #2a2a28;
}

/* ═══════════════════════════════════════════
   DOCS GRID
═══════════════════════════════════════════ */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.doc-card {
  border: 1px solid #111;
  transition: border-color .2s;
}
.doc-card:hover { border-color: var(--red); }
.doc-thumb {
  aspect-ratio: 16/9;
  background: #080808;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.doc-thumb iframe { width:100%; height:100%; border:none; }
.doc-play {
  width: 46px; height: 46px;
  border: 1px solid rgba(230,57,70,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.doc-card:hover .doc-play { background:var(--red); border-color:var(--red); }
.play-tri {
  width:0; height:0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid rgba(230,57,70,.6);
  margin-left: 3px;
}
.doc-card:hover .play-tri { border-left-color:#fff; }
.doc-body { padding: 1.2rem; }
.doc-dur {
  font-family: 'Cinzel', serif;
  font-size: .6rem; font-weight: 600;
  letter-spacing: .16em; color: var(--muted);
  margin-bottom: .5rem;
}
.doc-title {
  font-family: 'Cinzel', serif;
  font-size: .92rem; font-weight: 600;
  line-height: 1.3; margin-bottom: .5rem;
}
.doc-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem; font-weight: 300;
  color: var(--muted); line-height: 1.5;
}

/* ═══════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════ */
.single-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}
.single-cover {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
  margin-bottom: 2rem; border-radius: 3px;
}
.single-cat {
  font-family: 'Cinzel', serif;
  font-size: .6rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); display: block;
  margin-bottom: 1rem;
}
.single-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: .02em; margin-bottom: 1.5rem;
}
.single-meta {
  font-family: 'Cormorant Garamond', serif;
  font-size: .9rem; color: var(--muted);
  padding: 1rem 0;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  margin-bottom: 2.5rem;
}
.single-body p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 300;
  line-height: 1.9; color: #c8c6c0;
  margin-bottom: 1.6rem;
}
.single-body h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--text); margin: 2.5rem 0 1rem;
}
.single-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--text); margin: 2rem 0 .8rem;
}
.single-body img {
  max-width: 100%; display: block;
  margin: 2rem auto;
  border: 1px solid #1a1a1a;
}
.single-body blockquote {
  border-left: 2px solid var(--red);
  padding-left: 1.5rem; margin: 2rem 0;
  font-style: italic; color: var(--muted);
}
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: .9rem; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 3rem;
  transition: color .2s;
}
.back-btn:hover { color: var(--text); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
#site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem;
  text-align: center;
}
.footer-slogan {
  font-family: 'GFS Didot', serif;
  font-size: 1.1rem; font-weight: 400;
  letter-spacing: .1em;
  background: linear-gradient(135deg, #c0392b, #7b0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════
   ARCHIVE / CATEGORY PAGE
═══════════════════════════════════════════ */
.archive-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
}
.archive-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem; font-weight: 900;
  letter-spacing: .1em; margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
}
.archive-title::before {
  content: ''; width: 20px; height: 1px;
  background: var(--red);
}

/* ═══════════════════════════════════════════
   PAGE (Σχετικά κ.α.)
═══════════════════════════════════════════ */
.page-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}
.page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 2rem;
}
.page-body p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 300;
  line-height: 1.9; color: #c8c6c0;
  margin-bottom: 1.6rem;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .docs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  #site-nav { padding: 0 1.2rem; }
}
