/* Modern Article Styles for Review Pages - 2025 Design */

/* ============================================
   Article Container - Modern Layout
   ============================================ */
article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  background: #ffffff;
}

/* ============================================
   Article Header - Hero Style
   ============================================ */
article header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid #f0f0f0;
}

article h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Author Info - Modern Card */
article header > div {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #667eea;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}

article header p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9375rem;
  line-height: 1.6;
}

article header strong {
  color: #2c3e50;
  font-weight: 600;
}

/* ============================================
   Article Typography - Enhanced Readability
   ============================================ */
article h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #2c3e50;
  margin-top: 56px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #667eea;
  position: relative;
}

article h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

article h3 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  color: #34495e;
  margin-top: 40px;
  margin-bottom: 16px;
}

article h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #495057;
  margin-top: 32px;
  margin-bottom: 12px;
}

article p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 20px;
  text-align: left;
}

article strong {
  color: #2c3e50;
  font-weight: 600;
}

article em {
  font-style: italic;
  color: #6c757d;
}

/* ============================================
   Lists - Modern Style
   ============================================ */
article ul,
article ol {
  margin: 24px 0;
  padding-left: 28px;
}

article ul li,
article ol li {
  margin: 12px 0;
  padding-left: 8px;
  line-height: 1.7;
  color: #4a5568;
}

article ul li::marker {
  color: #667eea;
  font-weight: bold;
}

article ol li::marker {
  color: #667eea;
  font-weight: 600;
}

/* ============================================
   Comparison Tables - Modern Design
   ============================================ */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  font-size: 0.9375rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.comparison-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9375rem;
  letter-spacing: 0.3px;
}

.comparison-table th:first-child {
  border-top-left-radius: 12px;
}

.comparison-table th:last-child {
  border-top-right-radius: 12px;
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e9ecef;
  color: #4a5568;
  background: #ffffff;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: #f8f9fa;
}

.comparison-table .winner {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
  font-weight: 600;
  color: #155724;
  position: relative;
}

@media (max-width: 768px) {
  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.comparison-table .winner::before {
}

.comparison-table .runner-up {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
  color: #856404;
}

.comparison-table .tie {
  background: #e7f3ff !important;
  color: #004085;
}

/* Performance Table */
.performance-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.performance-table th {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ffffff;
  padding: 16px 20px;
  text-align: center;
  font-weight: 600;
}

.performance-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
  background: #ffffff;
}

.performance-table tr:hover td {
  background: #f8f9fa;
}

.performance-table .best-score {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
  font-weight: 600;
  color: #155724;
}

/* ============================================
   Highlight Boxes - Modern Cards
   ============================================ */
.highlight {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-left: 4px solid #f39c12;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.1);
}

.highlight p {
  margin: 0;
  color: #856404;
  line-height: 1.7;
}

.highlight strong {
  color: #533f03;
}

/* Info Box - Blue Theme */
.info-box {
  background: linear-gradient(135deg, #e8f4fd 0%, #d4edff 100%);
  border-left: 4px solid #3498db;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.info-box p {
  margin: 0;
  color: #2c3e50;
  line-height: 1.7;
}

.info-box strong {
  color: #1a252f;
  display: block;
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.related-content {
  background-color: #f8f9fa;
  border-left: 4px solid #3498db;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
}

.related-content h3 {
  margin: 0 0 12px 0;
  color: #2c3e50;
}

.related-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
}

.related-content li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.related-content li a:hover {
  text-decoration: underline;
}

/* ============================================
   Pros & Cons - Modern Layout
   ============================================ */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.pros,
.cons {
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pros {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 2px solid #28a745;
}

.pros h4 {
  color: #155724;
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.125rem;
}

.pros ul {
  margin: 0;
  padding-left: 24px;
}

.pros li {
  color: #155724;
  margin: 8px 0;
}

.cons {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 2px solid #dc3545;
}

.cons h4 {
  color: #721c24;
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.125rem;
}

.cons ul {
  margin: 0;
  padding-left: 24px;
}

.cons li {
  color: #721c24;
  margin: 8px 0;
}

@media (max-width: 768px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Software Review Boxes
   ============================================ */
.software-review {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #667eea;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.software-review:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.software-review h3 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.5rem;
}

.software-review p {
  color: #4a5568;
}

/* ============================================
   Rating & Score Boxes
   ============================================ */
.rating,
.score-box {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: #ffffff;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 8px 24px rgba(0, 184, 148, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rating:hover,
.score-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 184, 148, 0.4);
}

.rating h3,
.score-box h3 {
  color: #ffffff;
  margin: 0 0 16px 0;
  font-size: 1.75rem;
}

.rating p,
.score-box p {
  margin: 12px 0 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.0625rem;
}

.score-box > div {
  display: flex;
  justify-content: space-around;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 24px;
}

.score-box > div > div {
  flex: 1;
  min-width: 150px;
}

.score-box > div > div > div:first-child {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

/* ============================================
   Verdict Box - Special Highlight
   ============================================ */
.verdict-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 36px 40px;
  border-radius: 16px;
  margin: 48px 0;
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3);
}

.verdict-box h3 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.875rem;
}

.verdict-box p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
  line-height: 1.8;
}

.verdict-box ul {
  margin: 20px 0;
  padding-left: 28px;
}

.verdict-box li {
  color: rgba(255, 255, 255, 0.95);
  margin: 10px 0;
  line-height: 1.7;
}

.verdict-box li::marker {
  color: #ffffff;
}

/* Final Rankings */
.final-rankings {
  background: linear-gradient(135deg, #e8f4fd 0%, #d4edff 100%);
  border-radius: 16px;
  padding: 36px 40px;
  margin: 48px 0;
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.15);
}

.final-rankings h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 1.75rem;
}

.final-rankings ol {
  counter-reset: ranking;
  list-style: none;
  padding: 0;
  margin: 0;
}

.final-rankings ol li {
  counter-increment: ranking;
  padding: 20px 24px 20px 70px;
  margin: 16px 0;
  background: #ffffff;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.final-rankings ol li:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.final-rankings ol li::before {
  content: counter(ranking);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

/* ============================================
   Footer - Author Bio
   ============================================ */
article footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 2px solid #e9ecef;
}

article footer > div {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #667eea;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
}

article footer h4 {
  margin: 0 0 12px 0;
  color: #2c3e50;
  font-size: 1.25rem;
}

article footer p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9375rem;
  line-height: 1.7;
}

article footer hr {
  border: none;
  border-top: 1px solid #dee2e6;
  margin: 32px 0;
}

article footer small {
  color: #6c757d;
  font-size: 0.875rem;
}

/* ============================================
   Navigation Bar for Articles
   ============================================ */
nav:not(.navbar) {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 16px 0;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav:not(.navbar) > div {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav:not(.navbar) a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
}

nav:not(.navbar) a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-4px);
}

/* ============================================
   Images in Articles
   ============================================ */
article img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  margin: 32px 0;
}

article p + img,
article img + p {
  margin-top: 24px;
}

/* ============================================
   CTA Sections in Articles
   ============================================ */
article > div[style*="background"] {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

article > div[style*="background"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

article a[style*="gradient"] {
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

article a[style*="gradient"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

article a[style*="gradient"]:hover::before {
  left: 100%;
}

article a[style*="gradient"]:hover {
  transform: translateY(-2px);
}

/* ============================================
   Responsive Design for Articles
   ============================================ */
@media (max-width: 768px) {
  article {
    padding: 40px 20px;
  }
  
  article h1 {
    font-size: 1.875rem;
  }
  
  article h2 {
    font-size: 1.5rem;
    margin-top: 40px;
  }
  
  article h3 {
    font-size: 1.25rem;
  }
  
  .comparison-table {
    font-size: 0.875rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 12px 16px;
  }
  
  .software-review,
  .highlight,
  .info-box {
    padding: 20px 24px;
  }
  
  .verdict-box,
  .final-rankings {
    padding: 28px 24px;
  }
}

@media (max-width: 576px) {
  article {
    padding: 32px 16px;
  }
  
  .comparison-table {
    font-size: 0.8125rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }
  
  .final-rankings ol li {
    padding: 16px 20px 16px 60px;
  }
  
  .final-rankings ol li::before {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    left: 16px;
  }
}

/* ============================================
   Print Styles for Articles
   ============================================ */
@media print {
  article {
    max-width: 100%;
    padding: 0;
  }
  
  nav {
    display: none;
  }
  
  .comparison-table,
  .performance-table {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .highlight,
  .info-box,
  .software-review,
  .verdict-box,
  .final-rankings {
    box-shadow: none;
    border: 1px solid #000;
  }
}


/* ============================================
   Override for Article Page Header
   ============================================ */
/* Ensure article pages use the standard white header */
.article_page .header_section,
.article_page header.header_section {
  background: #ffffff !important;
}

.article_page .header_section .navbar-brand,
.article_page .header_section .nav-link {
  color: #2c3e50 !important;
}

/* Only style the back navigation, not the main header */
nav:not(.navbar) {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

nav:not(.navbar) a {
  color: #ffffff;
}
.article-card {
  background-color: #f8f9fa;
  border-left: 4px solid #3498db;
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
}

.article-card h3,
.article-card h4 {
  margin-top: 0;
  color: #2c3e50;
}

.article-card p {
  margin: 0;
}
