/* ================================
   TuerMeister - Article Page Styles
   Theme: Wood & Craft (Brown + Beige)
   ================================ */

/* === Article Hero Section === */
.tm-article-hero {
  padding: 120px 0 40px;
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-medium) 100%);
}

/* Breadcrumb */
.tm-article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tm-breadcrumb-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.tm-breadcrumb-link:hover {
  color: var(--primary-brown);
}

.tm-breadcrumb-separator {
  font-size: 14px;
  color: var(--gray-medium);
  opacity: 0.6;
}

.tm-breadcrumb-current {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-brown);
}

/* === Article Main Content === */
.tm-article-main {
  padding: 60px 0 80px;
  background: var(--bg-primary);
}

.tm-article {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 60px;
  box-shadow: var(--shadow-md);
}

/* Article Header */
.tm-article-header {
  margin-bottom: 40px;
}

.tm-article-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.tm-article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 2px solid var(--beige-medium);
}

.tm-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.tm-meta-item img {
  filter: sepia(0.8) hue-rotate(-10deg) saturate(1.2);
  opacity: 0.7;
}

/* Featured Image */
.tm-article-featured-image {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.tm-image-caption {
  padding: 16px;
  background: var(--beige-light);
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
}

/* Article Intro */
.tm-article-intro {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
  padding: 24px;
  background: linear-gradient(135deg, var(--beige-light) 0%, rgba(245, 241, 237, 0.5) 100%);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
}

.tm-article-intro p {
  margin: 0;
}

/* Article Content */
.tm-article-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 50px;
}

.tm-article-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 50px 0 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.tm-article-content h2:first-child {
  margin-top: 0;
}

.tm-article-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 20px;
  line-height: 1.4;
}

.tm-article-content p {
  margin-bottom: 24px;
}

.tm-article-content ul,
.tm-article-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.tm-article-content li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.tm-article-content strong {
  font-weight: 700;
  color: var(--primary-brown);
}

.tm-article-content blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  background: var(--beige-light);
  border-left: 4px solid var(--primary-brown);
  border-radius: var(--radius-md);
  font-size: 18px;
  font-style: italic;
  color: var(--text-secondary);
}

.tm-article-content blockquote p {
  margin: 0;
}

.tm-article-content a {
  color: var(--primary-brown);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.tm-article-content a:hover {
  color: var(--accent-wood);
}

.tm-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 32px 0;
}

.tm-article-content code {
  padding: 2px 8px;
  background: var(--beige-light);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--primary-brown);
}

.tm-article-content pre {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 24px 0;
}

.tm-article-content pre code {
  background: none;
  padding: 0;
  font-size: 14px;
}

/* Article Conclusion */
.tm-article-conclusion {
  margin-bottom: 40px;
  padding: 32px;
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-medium) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--sand);
}

.tm-article-conclusion h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-brown);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.tm-article-conclusion p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0;
}

.tm-article-conclusion a {
  color: var(--primary-brown);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.tm-article-conclusion a:hover {
  color: var(--accent-wood);
}

/* Article Tags */
.tm-article-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 2px solid var(--beige-medium);
  font-size: 14px;
  color: var(--text-secondary);
}

.tm-article-tags img {
  filter: sepia(0.8) hue-rotate(-10deg) saturate(1.2);
  opacity: 0.7;
}

/* === Related Articles Section === */
.tm-related-articles {
  margin-top: 60px;
  padding: 50px;
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-medium) 100%);
  border-radius: var(--radius-xl);
}

.tm-related-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.tm-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tm-related-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.tm-related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}

.tm-related-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.tm-related-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-medium) 100%);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.tm-related-icon img {
  filter: sepia(1) hue-rotate(-10deg) saturate(1.3);
}

.tm-related-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.tm-related-card:hover .tm-related-card-title {
  color: var(--primary-brown);
}

.tm-related-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--beige-light);
  border-radius: 50%;
  margin-top: auto;
  transition: all 0.3s ease;
}

.tm-related-card:hover .tm-related-arrow {
  background: var(--primary-brown);
  transform: translateX(6px);
}

.tm-related-arrow img {
  filter: sepia(1) hue-rotate(-10deg) saturate(1.2);
  transition: filter 0.3s ease;
}

.tm-related-card:hover .tm-related-arrow img {
  filter: brightness(0) invert(1);
}

/* === Responsive Design === */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .tm-article-hero {
    padding: 100px 0 30px;
  }

  .tm-article {
    padding: 40px;
  }

  .tm-article-title {
    font-size: 36px;
  }

  .tm-article-content h2 {
    font-size: 28px;
  }

  .tm-article-content h3 {
    font-size: 22px;
  }

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

  .tm-related-articles {
    padding: 40px;
  }

  .tm-related-title {
    font-size: 28px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .tm-article-hero {
    padding: 90px 0 25px;
  }

  .tm-article {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
  }

  .tm-article-title {
    font-size: 30px;
  }

  .tm-article-meta {
    gap: 16px;
  }

  .tm-article-intro {
    font-size: 18px;
    padding: 20px;
  }

  .tm-article-content {
    font-size: 16px;
  }

  .tm-article-content h2 {
    font-size: 26px;
    margin: 40px 0 20px;
  }

  .tm-article-content h3 {
    font-size: 20px;
    margin: 32px 0 16px;
  }

  .tm-article-conclusion {
    padding: 24px;
  }

  .tm-article-conclusion h2 {
    font-size: 24px;
  }

  .tm-related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tm-related-articles {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
  }

  .tm-related-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .tm-related-card {
    padding: 28px;
  }
}

/* Very Small Mobile (max-width: 375px) */
@media (max-width: 375px) {
  .tm-article-hero {
    padding: 80px 0 20px;
  }

  .tm-article {
    padding: 28px 20px;
  }

  .tm-article-title {
    font-size: 26px;
  }

  .tm-article-intro {
    font-size: 17px;
    padding: 18px;
  }

  .tm-article-content {
    font-size: 15px;
  }

  .tm-article-content h2 {
    font-size: 24px;
  }

  .tm-article-content h3 {
    font-size: 19px;
  }

  .tm-article-conclusion {
    padding: 20px;
  }

  .tm-article-conclusion h2 {
    font-size: 22px;
  }

  .tm-related-articles {
    padding: 28px 16px;
  }

  .tm-related-title {
    font-size: 22px;
  }

  .tm-related-card {
    padding: 24px;
  }
}
