/* Full Width Blog Layout - Mobile First Responsive Design */

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Full Width Blog Layout */
.blog-main-content {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
}

.blog-full-width-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-article {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Breadcrumb - FIXED Navigation */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.breadcrumb-link {
  color: #5b2b74;
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-link:hover {
  color: #005a87;
  text-decoration: underline;
}

.separator {
  color: #999;
  margin: 0 4px;
}

.breadcrumb-current {
  color: #333;
  font-weight: 500;
  word-break: break-word;
}

/* Article Header - Full Width */
.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e1e5e9;
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: #1a1a1a;
  word-wrap: break-word;
}

.article-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.author-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-details {
  flex: 1;
  min-width: 0;
}

.meta-info {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.meta-separator {
  margin: 0 8px;
  color: #999;
}

.social-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.action-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
  color: #333;
  transform: translateY(-1px);
}

.action-btn.voice-btn {
  background: #5b2b74;
  color: white;
  border-color: #5b2b74;
}

.action-btn.voice-btn:hover {
  background: #4a2361;
  border-color: #4a2361;
}

.action-btn.voice-btn.active {
  background: #dc3545;
  border-color: #dc3545;
}

.action-btn.voice-btn.active:hover {
  background: #c82333;
  border-color: #c82333;
}

/* Hero Image - Full Width */
.hero-image-container {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Article Content - Full Width */
.article-content {
  margin-top: 40px;
}

.post-intro {
  margin-bottom: 32px;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #5b2b74;
}

.content-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  color: #333;
}

/* Table of Contents - Full Width */
.toc-section {
  margin: 32px 0;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1e5e9;
}

.toc-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
}

.toc-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #5b2b74;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.toc-toggle:hover {
  background: rgba(0, 124, 186, 0.1);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.toc-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #5b2b74;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.toc-link {
  color: #333;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease;
  flex: 1;
}

.toc-link:hover {
  color: #5b2b74;
}

/* Entry Content - Full Width */
.entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
  margin: 32px 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: 32px 0 16px 0;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
}

.entry-content h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid #e1e5e9;
  padding-bottom: 8px;
}

.entry-content h3 {
  font-size: 1.5rem;
}

.entry-content h4 {
  font-size: 1.3rem;
}

.entry-content p {
  margin: 0 0 20px 0;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.entry-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: #f8f9fa;
  border-left: 4px solid #5b2b74;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* FAQ Section - Full Width */
.faq-section {
  margin: 40px 0;
}

.faq-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: #1a1a1a;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f8f9fa;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background: #e9ecef;
}

.faq-indicator {
  width: 20px;
  height: 20px;
  border: 2px solid #5b2b74;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.faq-indicator::before,
.faq-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #5b2b74;
  transition: all 0.2s ease;
}

.faq-indicator::before {
  width: 8px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-indicator::after {
  width: 2px;
  height: 8px;
  transform: translate(-50%, -50%);
}

.faq-item:not(.faq-collapsed) .faq-indicator::after {
  opacity: 0;
}

.faq-question-text {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
  flex: 1;
}

.faq-answer {
  padding: 0 20px 20px 52px;
  color: #555;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:not(.faq-collapsed) .faq-answer {
  max-height: 500px;
  padding-top: 16px;
}

/* Author Section - Full Width */
.author-section {
  margin: 40px 0;
  padding: 32px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e1e5e9;
}

.author-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: #1a1a1a;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.author-large-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-info-large {
  flex: 1;
}

.author-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #1a1a1a;
}

.author-role {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.author-bio {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Navigation Section - Full Width */
.nav-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
  padding: 32px 0;
  border-top: 1px solid #e1e5e9;
  border-bottom: 1px solid #e1e5e9;
}

.nav-item-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
  transition: all 0.2s ease;
}

.nav-item-wrapper:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.nav-direction {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-direction.next {
  justify-content: flex-end;
}

.nav-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-content.next {
  flex-direction: row-reverse;
}

.nav-thumbnail {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.nav-title.right {
  text-align: right;
}

.nav-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-title a:hover {
  color: #5b2b74;
}

/* Comments Section - Full Width */
.comment-section {
  margin: 40px 0;
}

.comment-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: #1a1a1a;
}

.comment-form {
  margin-bottom: 32px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #5b2b74;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  padding: 12px 24px;
  background: #5b2b74;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background: #005a87;
  transform: translateY(-1px);
}

.comments-list {
  margin: 32px 0;
}

.view-all-btn {
  padding: 12px 24px;
  background: transparent;
  color: #5b2b74;
  border: 1px solid #5b2b74;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.view-all-btn:hover {
  background: #5b2b74;
  color: white;
}

/* Related Articles - Full Width */
.related-section {
  margin: 40px 0;
}

.related-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 32px 0;
  color: #1a1a1a;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.related-article {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.related-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-article:hover .article-image {
  transform: scale(1.05);
}

.article-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  background: #5b2b74;
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
}

.article-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-title-related {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.4;
  flex: 1;
}

.article-title-related a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title-related a:hover {
  color: #5b2b74;
}

.article-meta-related {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #666;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.meta-text {
  font-size: 12px;
}

.meta-divider {
  width: 2px;
  height: 2px;
  background: #ccc;
  border-radius: 50%;
}

/* Voice Reading Highlight */
.voice-reading-highlight {
  background: rgba(0, 124, 186, 0.1);
  border-radius: 3px;
  padding: 2px 4px;
  transition: all 0.3s ease;
}

/* Footer CTA Banner - Full Width */
.footer-cta-banner-wrapper {
  width: 100%;
  margin: 40px 0 0 0;
  position: relative;
}

.footer-cta-banner-link {
  display: block;
  text-decoration: none;
}

.footer-cta-banner {
  position: relative;
  min-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.footer-cta-banner:hover {
  transform: translateY(-2px);
}

.cta-banner-image {
  display: block;
  width: 100%;
  height: 100%;
}

.cta-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tablet Styles */
@media (min-width: 768px) {
  .breadcrumb-container,
  .blog-content-wrapper {
    padding: 0 32px;
  }

  .article-title {
    font-size: 2.5rem;
  }

  .article-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .form-row {
    flex-direction: row;
    gap: 20px;
  }

  .form-group {
    flex: 1;
  }

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

  .nav-section {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav-item-wrapper {
    flex: 1;
    max-width: 48%;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .breadcrumb-container,
  .blog-content-wrapper {
    padding: 0 40px;
  }

  .article-title {
    font-size: 3rem;
  }

  .content-text {
    font-size: 1.2rem;
  }

  .entry-content {
    font-size: 1.2rem;
  }

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

  .author-card {
    gap: 24px;
  }

  .author-large-avatar {
    width: 70px;
    height: 70px;
  }

  .footer-cta-banner {
    min-height: 250px;
  }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
  .breadcrumb-container,
  .blog-content-wrapper {
    max-width: 1400px;
    padding: 0 60px;
  }

  .article-title {
    font-size: 3.5rem;
  }

  .hero-image-container {
    margin: 40px 0;
  }

  .article-content {
    margin-top: 48px;
  }

  .post-intro {
    padding: 32px;
    margin-bottom: 48px;
  }

  .toc-section {
    padding: 32px;
  }

  .author-section {
    padding: 40px;
  }
}

/* Extra Large Desktop */
@media (min-width: 1400px) {
  .breadcrumb-container,
  .blog-content-wrapper {
    max-width: 1600px;
    padding: 0 80px;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  .action-btn {
    border-width: 2px;
  }

  .toc-section,
  .faq-item,
  .author-section {
    border-width: 2px;
  }
}

/* Print Styles */
@media print {
  .social-actions,
  .footer-cta-banner-wrapper {
    display: none !important;
  }

  .article-content {
    font-size: 12pt;
    line-height: 1.5;
  }

  .article-title {
    font-size: 18pt;
  }
}

/* Focus Styles for Accessibility */
.action-btn:focus,
.toc-toggle:focus,
.form-input:focus,
.form-textarea:focus,
.submit-btn:focus {
  outline: 2px solid #5b2b74;
  outline-offset: 2px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #5b2b74;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
