/* NEON-POST Blog Styles */

:root {
  --color-gold: #C9A03E;
  --color-brown: #3D2E1F;
  --color-brown-light: #5C4A3A;
  --color-bg: #FAF6F0;
  --color-sand: #F5EDE3;
  --color-white: #FFFFFF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(61, 46, 31, 0.1);
}

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

body {
  font-family: var(--font-body);
  color: var(--color-brown);
  background: var(--color-bg);
  line-height: 1.6;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 2rem;
}

.breadcrumbs ol {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumbs a {
  color: var(--color-brown-light);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-gold);
}

.breadcrumbs [aria-current] {
  color: var(--color-gold);
}

/* Article Header */
.article-header {
  margin-bottom: 2rem;
}

.category-badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-white);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.article-header h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-brown);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  color: var(--color-brown);
  text-decoration: none;
}

.author-role {
  font-size: 0.875rem;
  color: var(--color-brown-light);
}

.article-meta time,
.article-meta .read-time {
  font-size: 0.875rem;
  color: var(--color-brown-light);
}

/* Featured Image */
.featured-image {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Content */
.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-content .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-brown-light);
  margin-bottom: 2rem;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--color-brown);
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  position: relative;
  border-left: 5px solid #C9A03E;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: #3D2E1F;
  background: linear-gradient(135deg, #FAF6F0 0%, #F5F1E8 50%, #F0E8DC 100%);
  border-radius: 0 20px 20px 0;
  box-shadow: 0 4px 20px rgba(201, 160, 62, 0.08);
}

.article-content blockquote::before {
  content: '';
  position: absolute;
  right: 1.5rem;
  bottom: 1rem;
  width: 60px;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A03E' stroke-width='0.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V21c0 1 0 1 1 1z'/%3E%3Cpath d='M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V21c0 1 0 1 1 1z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.dark .article-content blockquote {
  color: #C9A03E;
  background: linear-gradient(135deg, #3D2E1F 0%, #332519 50%, #2A1F15 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.article-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 2rem 0;
}

/* Table styles */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.article-content th, .article-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #E8DCC8;
}
.dark .article-content th, .dark .article-content td {
  border-bottom: 1px solid #5A4632;
}
.article-content th {
  background: linear-gradient(135deg, #C9A03E 0%, #A6822E 100%);
  color: white;
  font-weight: 600;
}
.article-content tr:nth-child(even) {
  background: rgba(201, 160, 62, 0.05);
}
.dark .article-content tr:nth-child(even) {
  background: rgba(201, 160, 62, 0.1);
}

/* Tags */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1.5px solid #C9A03E;
  border-radius: 50px;
  font-size: 0.875rem;
  color: #C9A03E;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: #C9A03E;
  color: white;
}

.dark .tag-item {
  border-color: #C9A03E;
  color: #C9A03E;
}

.dark .tag-item:hover {
  background: #C9A03E;
  color: #2A1F15;
}

/* Author Card */
.author-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #FAF6F0 0%, #F5F1E8 50%, #F0E8DC 100%);
  border-radius: var(--radius);
  margin-top: 2rem;
  border-left: 4px solid #C9A03E;
  box-shadow: 0 4px 20px rgba(201, 160, 62, 0.08);
}

.dark .author-card {
  background: linear-gradient(135deg, #3D2E1F 0%, #332519 50%, #2A1F15 100%);
  border-left-color: #C9A03E;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.author-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.25rem;
  color: #3D2E1F;
}

.dark .author-card h3 {
  color: #FAF6F0;
}

.author-card p {
  font-size: 0.875rem;
  color: var(--color-brown-light);
  margin: 0.25rem 0;
}

.dark .author-card p {
  color: #FAF6F0;
  opacity: 0.85;
}

/* LEAD BLOCK: Премиальный выделенный лид */
.lead-block {
  position: relative;
  margin: 0 0 2.5rem 0;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, #FAF6F0 0%, #F5F1E8 50%, #F0E8DC 100%);
  border: 1px solid rgba(201, 160, 62, 0.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(201, 160, 62, 0.08);
}

.dark .lead-block {
  background: linear-gradient(135deg, #3D2E1F 0%, #332519 50%, #2A1F15 100%);
  border-left-color: #C9A03E;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.lead-block::before {
  content: '';
  position: absolute;
  right: 2rem;
  bottom: 1.5rem;
  width: 100px;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A03E' stroke-width='0.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V21c0 1 0 1 1 1z'/%3E%3Cpath d='M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V21c0 1 0 1 1 1z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.lead-block p {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.75;
  color: #3D2E1F;
  margin: 0;
  letter-spacing: 0.02em;
}

.dark .lead-block p {
  color: #FAF6F0;
}

/* CONCLUSION BLOCK: Вывод (стиль под Лид, тонкий курсив) */
.conclusion-block {
  position: relative;
  margin: 2.5rem 0;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, #FAF6F0 0%, #F5F1E8 50%, #F0E8DC 100%);
  border-left: 5px solid #C9A03E;
  border-radius: 0 20px 20px 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(201, 160, 62, 0.08);
}

.dark .conclusion-block {
  background: linear-gradient(135deg, #3D2E1F 0%, #332519 50%, #2A1F15 100%);
  border-left-color: #C9A03E;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.conclusion-block::before {
  content: '';
  position: absolute;
  right: 2rem;
  bottom: 1.5rem;
  width: 100px;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A03E' stroke-width='0.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.conclusion-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #C9A03E;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.conclusion-label i {
  vertical-align: text-bottom;
  margin-right: 0.25rem;
}

.conclusion-block p {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
  color: #3D2E1F;
  margin: 0;
  letter-spacing: 0.02em;
}

.dark .conclusion-block p {
  color: #FAF6F0;
}

/* ENGAGEMENT BLOCK: Декоративные иконки по аналогии с Лидом */
.cta-primary,
.cta-secondary {
  position: relative;
  overflow: hidden;
}

/* Светлая тема */
.cta-primary {
  background: linear-gradient(135deg, #C9A03E 0%, #A6822E 100%);
  color: #FAF6F0;
  box-shadow: 0 10px 15px -3px rgba(201, 160, 62, 0.2);
}

.cta-primary:hover {
  background: linear-gradient(135deg, #B08D35 0%, #957228 100%);
  box-shadow: 0 4px 20px rgba(201, 160, 62, 0.35);
}

.cta-secondary {
  background: transparent;
  color: #C9A03E;
  border: 2px solid #C9A03E;
}

.cta-secondary:hover {
  background: rgba(201, 160, 62, 0.08);
  box-shadow: 0 4px 20px rgba(201, 160, 62, 0.25);
}

/* Тёмная тема */
.dark .cta-primary {
  background: transparent;
  color: #C9A03E;
  border: 2px solid #C9A03E;
  box-shadow: none;
}

.dark .cta-primary:hover {
  background: rgba(201, 160, 62, 0.08);
  box-shadow: 0 4px 20px rgba(201, 160, 62, 0.2);
}

.dark .cta-secondary {
  background: transparent;
  color: #C9A03E;
  border: 2px solid #C9A03E;
}

.dark .cta-secondary:hover {
  background: rgba(201, 160, 62, 0.08);
  box-shadow: 0 4px 20px rgba(201, 160, 62, 0.2);
}

/* Декоративные иконки — светлая тема */
.cta-primary::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FAF6F0' stroke-width='0.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.25;
  pointer-events: none;
}

.cta-secondary::before {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A03E' stroke-width='0.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.25;
  pointer-events: none;
}

/* Декоративные иконки — тёмная тема */
.dark .cta-primary::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A03E' stroke-width='0.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  opacity: 0.25;
}

.dark .cta-secondary::before {
  opacity: 0.25;
}

/* NEO-SEO: Quick Answer блок */
.neo-quick-answer {
  margin: 2rem 0;
}

.quick-answer-box {
  background: linear-gradient(135deg, #C9A03E 0%, #A6822E 100%);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(201, 160, 62, 0.3);
}

.quick-answer-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.quick-answer-text {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* FAQ ACCORDION: Премиальный аккордеон */
.faq-section {
  margin: 3rem 0;
  padding: 3rem;
  background: linear-gradient(180deg, #FAF6F0 0%, #FFFFFF 100%);
  border-radius: 4px;
  border: none;
  border-top: 3px solid #C9A03E;
  box-shadow: 0 2px 12px rgba(201, 160, 62, 0.06);
}

.dark .faq-section {
  background: linear-gradient(180deg, #2A1F15 0%, #332519 100%);
  border-top-color: #C9A03E;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.faq-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #3D2E1F;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dark .faq-section-title {
  color: #FAF6F0;
}

.faq-title-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #C9A03E, #E8D5A0);
  border-radius: 1px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item-acc {
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(201, 160, 62, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}

.dark .faq-item-acc {
  background: #3D2E1F;
  border-color: rgba(201, 160, 62, 0.2);
}

.faq-item-acc:hover {
  border-color: rgba(201, 160, 62, 0.4);
  box-shadow: 0 4px 12px rgba(201, 160, 62, 0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.faq-question-text {
  font-weight: 600;
  color: #3D2E1F;
  padding-right: 1rem;
  line-height: 1.5;
}

.dark .faq-question-text {
  color: #FAF6F0;
}

.faq-question:hover .faq-question-text {
  color: #C9A03E;
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: #C9A03E;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item-acc.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item-acc.active .faq-answer {
  max-height: none;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer-text {
  color: #5A4632;
  line-height: 1.7;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(201, 160, 62, 0.2);
}

.dark .faq-answer-text {
  color: #FAF6F0;
  opacity: 0.85;
}

/* RELATED ARTICLES: Премиальные связанные статьи */
.related-section {
  margin: 3rem 0;
  padding: 0;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(201, 160, 62, 0.2);
  padding-top: 2.5rem;
}

.related-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #3D2E1F;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
}

.dark .related-title {
  color: #FAF6F0;
}

.related-title-line {
  width: 24px;
  height: 1px;
  background: #C9A03E;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 640px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  border: none;
  border-bottom: 1px solid rgba(201, 160, 62, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
  padding-bottom: 1.5rem;
}

.dark .related-card {
  background: transparent;
  border-bottom-color: rgba(201, 160, 62, 0.2);
}

.related-card:hover {
  border-bottom-color: #C9A03E;
}

.related-card:hover .related-card-title {
  color: #C9A03E;
}

.related-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.related-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.related-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.related-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C9A03E;
}

.related-readtime {
  font-size: 0.75rem;
  color: #5A4632;
  opacity: 0.6;
}

.dark .related-readtime {
  color: #FAF6F0;
  opacity: 0.5;
}

.related-content {
  flex-grow: 1;
}

.related-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #3D2E1F;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.dark .related-card-title {
  color: #FAF6F0;
}

.related-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-author-name {
  font-size: 0.8rem;
  color: #5A4632;
  opacity: 0.7;
}

.dark .related-author-name {
  color: #FAF6F0;
  opacity: 0.6;
}

/* Rank number — бронзовые цифры в Популярных статьях */
.rank-number {
  background: linear-gradient(135deg, #C9A03E 0%, #A6822E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #C9A03E;
}

/* UL/LI: Бронзовые точки с аурой */
.article-content ul {
  list-style: none;
  padding-left: 0;
}

.article-content ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #E8D5A0 0%, #C9A03E 40%, #A6822E 100%);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(201, 160, 62, 0.5), 0 0 12px rgba(201, 160, 62, 0.3), 0 0 20px rgba(201, 160, 62, 0.15);
}

.dark .article-content ul li::before {
  box-shadow: 0 0 8px rgba(201, 160, 62, 0.7), 0 0 16px rgba(201, 160, 62, 0.4), 0 0 24px rgba(201, 160, 62, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .blog-container {
    padding: 1rem;
  }
  
  .article-header h1 {
    font-size: 1.75rem;
  }
  
  .article-content {
    font-size: 1rem;
  }
  
  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .lead-block {
    padding: 1.5rem 2rem;
  }

  .faq-section {
    padding: 1.5rem;
  }
}
