/*
Theme Name: Success City Gazette
Theme URI: https://news.successcity.eu/
Author: OpenAI
Description: Thème WordPress sur mesure pour le site d'actualités Success City Gazette.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.3
Text Domain: success-city-gazette
*/

:root {
  --bg: #0b0714;
  --bg-soft: #140a24;
  --panel: rgba(20, 10, 36, 0.82);
  --text: #f4f1f8;
  --muted: #b6afc4;
  --primary: #a24dff;
  --primary-2: #c97bff;
  --accent: #e05cff;
  --line: rgba(162, 77, 255, 0.28);
  --glow: 0 0 24px rgba(162, 77, 255, 0.22);
  --radius: 20px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(130, 44, 255, 0.22), transparent 35%),
    linear-gradient(180deg, #090511 0%, #10071a 45%, #090511 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.015) 0,
    rgba(255,255,255,0.015) 2px,
    transparent 2px,
    transparent 68px
  );
  opacity: .3;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section-space {
  padding: 56px 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(8, 5, 14, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(201,123,255,0.2));
}

.brand-text h1,
.brand-text p {
  margin: 0;
}

.brand-text h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-text p {
  color: var(--primary-2);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: .68rem;
  margin-top: 3px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav a {
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: .25s ease;
  font-weight: 500;
  font-size: .98rem;
}

.primary-nav a:hover,
.primary-nav .current-menu-item a,
.primary-nav .current_page_item a,
.primary-nav .current-menu-ancestor a {
  color: var(--text);
  border-color: var(--line);
  background: rgba(162,77,255,0.12);
  box-shadow: var(--glow);
}

/* Hero */
.hero {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--line);
}

.hero-box {
  text-align: center;
  padding: 30px 20px 18px;
  max-width: 980px;
  margin: 0 auto;
}

.eyebrow {
  color: var(--primary-2);
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: .78rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 70px;
  height: 1px;
  background: var(--line);
}

.hero-logo {
  width: 82px;
  margin: 0 auto 14px;
  filter: drop-shadow(0 0 14px rgba(201,123,255,0.28));
}

.hero-title {
  margin: 16px 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: .92;
}

.hero-title span {
  display: block;
  color: var(--primary);
  text-shadow: 0 0 18px rgba(162,77,255,.3);
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 760px;
  margin: 16px auto 0;
}

.hero-date {
  color: var(--muted);
  margin-top: 12px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

.filter-pill {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(162,77,255,0.06);
  padding: 12px 18px;
  border-radius: 999px;
  transition: .25s ease;
}

.filter-pill:hover,
.filter-pill.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(201,123,255,.22), rgba(162,77,255,.18));
  box-shadow: var(--glow);
}

/* Sections */
.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-title h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.section-title p {
  color: var(--muted);
  margin: 6px 0 0;
}

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(20, 10, 36, 0.92), rgba(12, 7, 22, 0.96));
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.28), var(--glow);
}

.card-media {
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 28px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: .88rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text);
  background: rgba(162,77,255,0.14);
  border: 1px solid rgba(201,123,255,0.2);
}

.card-title {
  margin: 12px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 2.4rem);
  line-height: 1.08;
}

.card-excerpt {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--primary-2);
  font-weight: 600;
}

/* Featured home block */
.featured-single {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 0;
  overflow: hidden;
}

.featured-single .card-media {
  min-height: 460px;
}

.featured-single .card-media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.featured-single .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.featured-single .card-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.post-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,123,255,0.38);
  box-shadow: 0 12px 30px rgba(0,0,0,.3), 0 0 26px rgba(162,77,255,0.18);
}

.post-card .card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.post-card:hover .card-media img {
  transform: scale(1.03);
}

.post-card .card-title {
  font-size: 1.35rem;
  line-height: 1.1;
}

.post-card.hidden-by-filter {
  display: none;
}

/* Archive */
.archive-header {
  padding: 54px 0 26px;
  border-bottom: 1px solid var(--line);
}

.archive-header h1,
.single-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
}

.archive-description {
  color: var(--muted);
  max-width: 720px;
  margin-top: 14px;
}

/* Single article */
.single-wrap {
  width: min(calc(100% - 32px), 860px);
  margin: 0 auto;
  padding: 54px 0 80px;
}

.single-cover {
  margin: 26px 0 34px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--glow);
}

.single-content {
  background: rgba(20, 10, 36, 0.55);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}

.single-content h2,
.single-content h3,
.single-content h4 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.15;
}

.single-content p,
.single-content li,
.single-content blockquote {
  color: #e7e0ef;
}

.single-content blockquote {
  border-left: 3px solid var(--primary);
  margin: 24px 0;
  padding: 8px 0 8px 18px;
  font-style: italic;
}

.single-content .wp-block-gallery,
.single-content .gallery {
  margin-top: 28px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  margin: 0 4px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.pagination .current,
.pagination .page-numbers:hover {
  color: var(--text);
  background: rgba(162,77,255,.18);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  color: var(--muted);
  background: rgba(8, 5, 14, 0.55);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

/* Empty state */
.editor-note {
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(162,77,255,0.05);
}

/* Responsive */
@media (max-width: 980px) {
  .featured-single {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
    min-height: auto;
  }

  .primary-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .featured-single .card-media,
  .featured-single .card-media img {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 68px;
  }

  .hero-box {
    padding: 30px 8px;
  }

  .eyebrow::before,
  .eyebrow::after {
    width: 34px;
  }

  .single-content {
    padding: 20px;
  }

  .card-body,
  .featured-single .card-body {
    padding: 22px;
  }
}