/*
Theme Name: RatePress Showcase
Theme URI: https://ratepress.com
Description: Dark modern showcase theme for RatePress Pro rating plugin. Interactive carousel design with full-width sections.
Version: 2.68
Author: RatePress
Author URI: https://ratepress.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ratepress-showcase
Domain Path: /languages/
Tags: ratepress, ratings, showcase, dark, modern, carousel
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================================================
   CSS Variables (Dark Theme - Maintained)
   ============================================================================ */

:root {
  --font-family-base: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --secondary: #10b981;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0a0a0a;
  --dark-light: #1a1a1a;
  --darker: #000000;
  --light: #f8fafc;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --glass-bg: rgba(10, 10, 10, 0.95);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.8);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.8);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.8);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.9);
}

/* ============================================================================
   Global Styles
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--darker);
  color: var(--text-primary);
  font-family: var(--font-family-base);
  line-height: 1.6;
  font-size: 16px;
}

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

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

a:hover {
  color: var(--primary);
}

/* ============================================================================
   Site Structure
   ============================================================================ */

.site-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ============================================================================
   Header Section
   ============================================================================ */

/* ============================================================================
   Site Header - Non-sticky
   ============================================================================ */

/* ============================================================================
   Site Header - Logo Left, Menu Right
   ============================================================================ */

.site-header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  position: relative;
  padding: 1rem 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 8px;
  color: white;
}

.site-logo svg {
  width: 20px;
  height: 20px;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-navigation {
  display: flex;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }
  
  .site-title {
    font-size: 1.25rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero-section {
  background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark) 100%);
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #60a5fa, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section p {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================================
   Showcase Sections - Modern 2026 Design
   ============================================================================ */

.movie-showcase-section,
.music-showcase-section,
.blog-showcase-section {
    padding: 4rem 0;
    position: relative;
}

.movie-showcase-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.music-showcase-section {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.blog-showcase-section {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
}

.showcase-content.reverse {
    direction: rtl;
}

.showcase-content.reverse .showcase-info {
    direction: ltr;
}

.showcase-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.showcase-media:hover {
    transform: translateY(-8px);
}

.movie-poster {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.soundcloud-player {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    overflow: hidden;
}

.soundcloud-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.blog-hero {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-icon {
    font-size: 8rem;
    z-index: 2;
    position: relative;
}

.blog-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    background-size: 100px 100px;
}

.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
}

.rating-widget {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rating-label {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rating-widget .rating-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffc107 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-self: flex-start;
}

.showcase-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}

.showcase-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.showcase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.meta-item {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   Admin Panel Section - Clean Design
   ============================================================================ */

.admin-demo-section {
    padding: 4rem 0;
    background: var(--dark);
}

.admin-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.admin-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.admin-credentials {
    display: flex;
    justify-content: center;
}

.credentials-card {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.credentials-card h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.credentials-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.credential-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.credential-item strong {
    color: var(--primary);
}

.credential-item code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
}

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

@media (max-width: 1024px) {
    .showcase-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .showcase-content.reverse {
        direction: ltr;
    }
    
    .admin-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .showcase-title,
    .admin-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .movie-showcase-section,
    .music-showcase-section,
    .blog-showcase-section,
    .admin-demo-section {
        padding: 2rem 0;
    }
    
    .showcase-content,
    .admin-showcase {
        gap: 2rem;
    }
    
    .showcase-media {
        order: -1;
    }
    
    .movie-poster,
    .blog-hero {
        height: 300px;
    }
    
    .soundcloud-player {
        height: 200px;
    }
    
    .showcase-title,
    .admin-title {
        font-size: 1.8rem;
    }
    
    .showcase-description,
    .admin-description {
        font-size: 1rem;
    }
    
    .meta-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

.content-section {
  padding: 60px 20px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.content-section:last-of-type {
  border-bottom: none;
}

.section-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.content-full {
  grid-column: 1 / -1;
}

.content-left,
.content-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.content-excerpt {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.content-section p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.rating-types-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-types-list li {
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.rating-types-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Content Images */

.content-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s ease;
}

.content-image:hover {
  transform: scale(1.02);
}

.movie-poster {
  max-width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.soundcloud-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark-light);
}

.soundcloud-container iframe {
  display: block;
  width: 100%;
}

/* Rating Showcase */

.rating-showcase {
  background: var(--dark-light);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.rating-showcase h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.rating-container {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Responsive: Mobile stacking */

@media (max-width: 768px) {
  .section-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .content-section {
    padding: 40px 20px;
  }
  
  .hero-section h1 {
    font-size: 32px;
  }
}

/* ============================================================================
   Template Selector Carousels - FULL WIDTH, OPTIMIZED
   ============================================================================ */

.template-selector {
  background: var(--dark);
  padding: 60px 20px;
  border-top: 1px solid var(--border);
}

.template-notice {
  max-width: 1200px;
  margin: 0 auto 40px;
  text-align: center;
}

.template-notice p {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0;
}

.category-carousel-section {
  max-width: 100%;
  margin: 0 auto 60px;
  padding: 0;
}

.category-carousel-section:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  margin-left: 40px;
}

/* Carousel Container - FULL WIDTH */

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  max-width: 100%;
}

.carousel-track {
  flex: 1;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 20px;
  margin: 0 -20px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 auto;
  min-width: 240px;
  cursor: pointer;
}

.template-card {
  background: var(--dark-light);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.template-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.template-card.selected {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.template-card.selected::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.template-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--darker);
  overflow: hidden;
  flex-shrink: 0;
}

.template-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.template-card:hover .template-thumbnail img {
  transform: scale(1.05);
}

.template-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.template-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.template-description {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  flex: 1;
}

/* ============================================================================
   Swiper Carousel Styles
   ============================================================================ */

.template-swiper {
  position: relative;
  padding: 0 60px;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  width: auto;
  flex-shrink: 0;
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.3s ease;
  color: white;
  font-size: 20px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: '';
  display: none;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.swiper-button-prev:active,
.swiper-button-next:active {
  transform: translateY(-50%) scale(0.95);
}

.swiper-button-prev {
  left: 0;
}

.swiper-button-next {
  right: 0;
}

/* Add SVG icons for Swiper buttons */
.swiper-button-prev::before {
  content: '◀';
  font-size: 18px;
}

.swiper-button-next::before {
  content: '▶';
  font-size: 18px;
}

/* ============================================================================
   Old Carousel Buttons (keeping for reference, but hidden by Swiper)
   ============================================================================ */

/* Carousel Buttons */

.carousel-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

/* ============================================================================
   Admin Demo Section
   ============================================================================ */

.admin-demo-section {
  background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark) 100%);
  padding: 60px 20px;
  border-top: 1px solid var(--border);
}

.demo-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.demo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.demo-icon {
  color: var(--primary);
}

.demo-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

.demo-credentials {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.demo-credentials h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.credential-item {
  text-align: left;
}

.credential-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.credential-item code {
  background: var(--darker);
  color: var(--primary-light);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  display: block;
  word-break: break-all;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--dark-light);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
}

/* ============================================================================
   Footer Section
   ============================================================================ */

.site-footer {
  background: var(--darker);
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: auto;
}

.site-footer p {
  margin: 0;
}

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

@media (max-width: 1024px) {
  .carousel-item {
    min-width: 200px;
  }
  
  .demo-container {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .site-title {
    font-size: 24px;
  }
  
  .hero-section h1 {
    font-size: 28px;
  }
  
  .content-section h2 {
    font-size: 24px;
  }
  
  .carousel-item {
    min-width: 160px;
  }
  
  .demo-title {
    font-size: 20px;
  }
  
  .demo-container {
    padding: 24px;
  }
  
  .credentials-grid {
    grid-template-columns: 1fr;
  }
  
  .category-title {
    margin-left: 0;
    padding-left: 20px;
  }
  
  .carousel-container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .site-header {
    padding: 20px;
  }
  
  .site-title {
    font-size: 20px;
  }
  
  .main-navigation {
    gap: 12px;
  }
  
  .nav-menu {
    gap: 12px;
  }
  
  .hero-section {
    padding: 30px 15px;
  }
  
  .content-section {
    padding: 30px 15px;
  }
  
  .section-wrapper {
    gap: 20px;
  }
  
  .carousel-item {
    min-width: 140px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .template-selector {
    padding: 30px 15px;
  }
  
  .template-notice p {
    font-size: 14px;
  }
}

/* ============================================================================
   Blog Posts Section - Simple Clean Design
   ============================================================================ */

.blog-posts-section {
    padding: 4rem 0;
    background: var(--dark);
}

.blog-posts-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.post-card {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.post-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary);
}

.post-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    color: var(--primary-light);
}

/* Single Post Styles */
.single-post .post-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-post .post-meta {
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
}

.single-post .post-meta span {
    margin-right: 1rem;
}

.single-post .post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.single-post .post-content p {
    margin-bottom: 1.5rem;
}

.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4,
.single-post .post-content h5,
.single-post .post-content h6 {
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

/* ============================================================================
   Modern Comments Styles
   ============================================================================ */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

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

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.comment-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.comment-meta a {
    color: var(--text-muted);
    text-decoration: none;
}

.comment-meta a:hover {
    color: var(--primary);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Nested Comments */
.children {
    margin-left: 2rem;
    margin-top: 1rem;
}

.children .comment {
    margin-bottom: 1rem;
}

/* Modern Comment Form */
.comment-form {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.comment-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.comment-form .comment-notes {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.comment-form-comment {
    margin-bottom: 1.5rem;
}

.comment-form-comment label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.comment-form-comment textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--dark-light);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--dark-light);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form-submit:hover {
    background: var(--primary-dark);
}

.logged-in-as,
.must-log-in {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.logged-in-as a,
.must-log-in a {
    color: var(--primary);
    font-weight: 500;
}

.no-comments {
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
    text-align: center;
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nav-previous,
.nav-next {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    background: var(--primary);
    color: white;
}
