/* Modern CSS for bridesrussians.com - 2026 */
/* Replaces obsolete CSS, adds responsive design */

:root {
  --primary: #8b1a1a;
  --primary-light: #b22222;
  --accent: #c9a84c;
  --text: #333;
  --text-light: #666;
  --bg: #fafafa;
  --white: #fff;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1100px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

/* === HEADER === */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.site-header .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.site-logo a span { color: var(--primary); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
}

.site-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--primary);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.nav-toggle svg { width: 28px; height: 28px; }

/* === HERO / PAGE HEADER === */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #5c1010 100%);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
  line-height: 1.3;
}

.page-hero .subtitle {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* === MAIN CONTENT === */
.site-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.main-content { min-width: 0; }

/* === ARTICLE === */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-light);
}

.article-meta .reading-time {
  background: var(--primary);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.article-summary {
  background: #f8f4ee;
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin-bottom: 30px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.article-summary h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.article-toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 30px;
}

.article-toc h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.article-toc ol {
  padding-left: 20px;
  font-size: 0.9rem;
}

.article-toc li { margin-bottom: 6px; }
.article-toc a { color: var(--text); }
.article-toc a:hover { color: var(--primary); }

/* Article body */
.article-body h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 35px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article-body h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 25px 0 12px;
}

.article-body p {
  margin-bottom: 16px;
  text-align: justify;
  hyphens: auto;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-body li { margin-bottom: 6px; }

.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: #f9f9f9;
  padding: 16px 20px;
  margin: 20px 0;
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body img {
  border-radius: var(--radius);
  margin: 20px auto;
  box-shadow: var(--shadow);
}

.article-body figure {
  margin: 24px 0;
  text-align: center;
}

.article-body figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 8px;
  font-style: italic;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.article-body th, .article-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.article-body th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.article-body tr:nth-child(even) { background: #f9f9f9; }

/* Video responsive */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 20px 0;
  border-radius: var(--radius);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === FAQ === */
.faq-section {
  margin: 40px 0 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq-section h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
  border-bottom: none;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item summary::before {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.faq-item[open] summary::before { content: '-'; }

.faq-item .faq-answer {
  padding: 10px 0 4px 34px;
  color: var(--text-light);
  line-height: 1.6;
}

/* === SIDEBAR === */
.sidebar {
  position: sticky;
  top: 84px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-widget h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.sidebar-widget ul { list-style: none; }

.sidebar-widget li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-widget li:last-child { border-bottom: none; }

.sidebar-widget a {
  color: var(--text);
  font-size: 0.9rem;
  display: block;
  transition: padding-left 0.2s;
}

.sidebar-widget a:hover {
  color: var(--primary);
  padding-left: 6px;
}

/* === HOMEPAGE SPECIFIC === */
.home-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #5c1010 60%), url('../images/mariage-russe.jpg') center/cover;
  background-blend-mode: overlay;
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.home-hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.home-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 24px;
}

.home-sections {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px;
}

.section-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card-body {
  padding: 16px;
}

.article-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--primary); }

.article-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Home features */
.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.feature-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.feature-item:hover { border-color: var(--primary); }

.feature-item h3 {
  font-size: 1rem;
  color: var(--text);
  margin-top: 8px;
}

.feature-item a { color: var(--text); }

/* === FOOTER === */
.site-footer {
  background: #2b2020;
  color: #ccc;
  padding: 30px 20px;
  margin-top: 40px;
}

.site-footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer a { color: #ddd; }
.site-footer a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  list-style: none;
  font-size: 0.9rem;
}

.footer-copy { font-size: 0.85rem; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .features-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 12px;
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .site-nav a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .page-hero { padding: 30px 16px; }
  .home-hero { padding: 40px 16px; }
  .articles-grid { grid-template-columns: 1fr; }
  .features-row { grid-template-columns: 1fr 1fr; }

  .article-body h2 { font-size: 1.3rem; }
  .article-body h3 { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .features-row { grid-template-columns: 1fr; }
  .site-content { padding: 20px 14px; }
  .article-body p { text-align: left; }
}

/* === UTILITIES === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }

/* Internal links highlight */
.internal-links {
  background: #f8f8f8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
}

.internal-links h3 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.internal-links ul {
  list-style: none;
  padding: 0;
}

.internal-links li {
  padding: 4px 0;
}

.internal-links a::before {
  content: '\2192 ';
  color: var(--accent);
}
