/*
Theme Name: Claudiu Murgan
Theme URI: https://claudiumurgan.com
Author: Claudiu Murgan
Description: Spiritual / sci-fi inspired theme for author, speaker and podcaster Claudiu Murgan. Dark palette with orange-magenta-purple gradients and glassmorphism.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: claudiu-murgan
Tags: one-column, custom-menu, featured-images, translation-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --background: hsl(270 20% 6%);
  --foreground: hsl(0 0% 96%);
  --card: hsl(270 20% 10%);
  --primary: hsl(320 80% 58%);
  --primary-foreground: hsl(0 0% 100%);
  --accent: hsl(25 95% 55%);
  --muted: hsl(270 20% 14%);
  --muted-foreground: hsl(270 10% 60%);
  --border: hsl(270 20% 18%);
  --radius: 0.75rem;

  --gradient-hero: linear-gradient(135deg, hsl(25, 95%, 50%) 0%, hsl(340, 80%, 50%) 40%, hsl(280, 70%, 45%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(270, 30%, 12%) 0%, hsl(280, 25%, 8%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(320, 80%, 58%), hsl(25, 95%, 55%));
  --shadow-glow: 0 0 40px -10px hsl(320 80% 58% / 0.4);
  --shadow-card: 0 8px 32px -8px hsl(0 0% 0% / 0.5);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Raleway', system-ui, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.muted { color: var(--muted-foreground); }
.eyebrow {
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .75rem;
}
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.glass {
  background: hsl(270 30% 12% / .6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(270 20% 25% / .3);
}
.section { padding: 6rem 0; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.75rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: opacity .3s, background .3s, transform .3s;
}
.btn-primary { background: var(--gradient-hero); color: var(--primary-foreground); box-shadow: var(--shadow-glow); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { border: 1px solid hsl(0 0% 100% / .2); background: hsl(0 0% 100% / .1); color: #fff; }
.btn-ghost:hover { background: hsl(0 0% 100% / .2); }
.btn-solid { background: #fff; color: var(--background); }
.btn-outline { border: 1px solid var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--muted); }

/* ---------- Header / Nav ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.site-brand { display: flex; align-items: center; gap: .75rem; }
.site-brand img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }
.site-brand .brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a { font-size: .9rem; font-weight: 500; color: hsl(0 0% 96% / .7); transition: color .3s; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--foreground); }

.main-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
  flex-direction: column; gap: 0; padding: .5rem;
  background: hsl(270 30% 12% / .95); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.main-nav li:hover > .sub-menu { display: flex; }
.main-nav .sub-menu li { width: 100%; }
.main-nav .sub-menu a { display: block; padding: .6rem .9rem; border-radius: .5rem; }
.main-nav .sub-menu a:hover { background: hsl(270 20% 20% / .6); }
.main-nav .sub-menu .sub-menu { top: 0; left: 100%; }

.menu-toggle { display: none; background: none; border: 0; color: var(--foreground); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .site-header .container { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1rem 0 1.5rem; }
  .main-nav .sub-menu { display: flex; position: static; background: none; border: 0; padding-left: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; text-align: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--gradient-hero); opacity: .9; }
.hero .container { position: relative; z-index: 1; }
.hero .kicker { font-size: .9rem; letter-spacing: .3em; text-transform: uppercase; color: hsl(0 0% 100% / .7); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); color: #fff; margin-bottom: 1.5rem; }
.hero h1 .italic { font-style: italic; font-weight: 300; }
.hero h1 .tagline {
  display: block; margin-top: 1rem; font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem); font-weight: 400; letter-spacing: .02em;
  color: hsl(0 0% 100% / .8);
}
.hero .lead { max-width: 36rem; margin: 0 auto 2.5rem; color: hsl(0 0% 100% / .8); font-size: 1.15rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Page banner ---------- */
.page-banner { padding: 9rem 0 5rem; background: var(--gradient-hero); text-align: center; }
.page-banner h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.page-banner p { color: hsl(0 0% 100% / .75); max-width: 36rem; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--gradient-card); border: 1px solid var(--border);
  border-radius: 1rem; padding: 1.75rem; box-shadow: var(--shadow-card);
  transition: border-color .4s, box-shadow .4s, transform .4s;
}
a.card:hover { border-color: hsl(320 80% 58% / .4); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.card .sub { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-foreground); }
.card p { font-size: .92rem; color: var(--muted-foreground); margin: 0; }
.card img { margin-top: 1.25rem; border-radius: .75rem; max-height: 180px; object-fit: contain; width: 100%; }

/* ---------- Bio ---------- */
.bio-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .bio-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.bio-photo { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-card); }
.bio-copy h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.bio-copy p { color: var(--muted-foreground); }

/* ---------- Book rows ---------- */
.book-row { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; margin-bottom: 6rem; }
@media (min-width: 820px) { .book-row { grid-template-columns: 1fr 1fr; } .book-row.reverse .book-cover { order: 2; } }
.book-cover img { border-radius: 1rem; box-shadow: var(--shadow-card); margin: 0 auto; max-width: 420px; }
.book-info h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.25rem; }
.book-info p { color: var(--muted-foreground); margin-bottom: 2rem; }
blockquote.review { border-left: 2px solid var(--primary); padding-left: 1rem; margin: 0 0 2rem; }
blockquote.review p { font-style: italic; font-size: .9rem; margin-bottom: .5rem; }
blockquote.review cite { font-style: normal; font-weight: 600; font-size: .9rem; }
blockquote.review span { display: block; font-size: .78rem; color: var(--muted-foreground); }
.book-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Newsletter / CTA ---------- */
.cta-panel {
  background: var(--gradient-card); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 3rem 2rem; text-align: center; box-shadow: var(--shadow-card);
}
.cta-panel h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.cta-panel p { color: var(--muted-foreground); max-width: 34rem; margin: 0 auto 2rem; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.newsletter-form input {
  flex: 1 1 260px; max-width: 340px; padding: .85rem 1.25rem; border-radius: 999px;
  border: 1px solid var(--border); background: hsl(270 20% 14% / .8); color: var(--foreground);
  font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: var(--muted-foreground); }

/* ---------- Content (posts & pages) ---------- */
.entry { padding: 9rem 0 5rem; }
.entry-content { max-width: 46rem; margin: 0 auto; color: var(--muted-foreground); font-size: 1.05rem; }
.entry-content h1, .entry-content h2, .entry-content h3 { color: var(--foreground); margin-top: 2.5rem; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-header { max-width: 46rem; margin: 0 auto 2.5rem; }
.entry-header h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.entry-meta { font-size: .85rem; color: var(--muted-foreground); }
.post-card-title { font-size: 1.3rem; margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 2.5rem; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { font-size: .9rem; color: var(--muted-foreground); transition: color .3s; }
.site-footer a:hover { color: var(--foreground); }
.site-footer .tagline { font-size: .9rem; color: var(--muted-foreground); }
.social-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  font-size: .78rem; color: var(--muted-foreground);
}
