/* ========================================
   Category Pages - Luxury UX Design System
   ======================================== */

.category-page {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  min-height: 100vh;
  padding: 4rem 0;
}

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

/* ========================================
   Header & Hero
   ======================================== */

.category-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.8) 100%);
  border-radius: 1.5rem;
  box-shadow: 
    0 1px 3px rgba(0,0,0,0.05),
    0 10px 30px -10px rgba(0,0,0,0.08);
}

.category-h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #1a202c;
  margin: 0 0 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-intro {
  font-size: 1.125rem;
  color: #4a5568;
  line-height: 1.8;
  max-width: 750px;
  margin: 0 auto;
  text-align: left;
}

.category-intro p {
  margin-bottom: 1.25rem;
}

.category-intro strong {
  color: #2d3748;
  font-weight: 600;
}

/* ========================================
   Section Blocks
   ======================================== */

.category-section {
  margin-bottom: 3.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-block {
  background: white;
  padding: 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 
    0 1px 3px rgba(0,0,0,0.05),
    0 10px 30px -10px rgba(0,0,0,0.1);
}

.content-block:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.08),
    0 20px 40px -15px rgba(102,126,234,0.2);
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section-content {
  font-size: 1.0625rem;
  color: #4a5568;
  line-height: 1.8;
}

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

.section-content ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.section-content ul li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  color: #4a5568;
  line-height: 1.6;
}

.section-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #48bb78;
  font-weight: 700;
  font-size: 1.125rem;
}

.section-content strong {
  color: #2d3748;
  font-weight: 600;
}

/* Template Structure Boxes */
.template-structure {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 2rem;
  border-radius: 1rem;
  margin: 1.5rem 0;
  border-left: 4px solid #667eea;
}

.template-structure h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 1rem;
}

.template-structure ul {
  margin: 0;
}

/* ========================================
   CTA Blocks
   ======================================== */

.cta-block {
  padding: 2rem;
  border-radius: 1.25rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-soft {
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  border: 2px solid #cbd5e0;
}

.cta-soft:hover {
  border-color: #a0aec0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cta-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  box-shadow: 
    0 4px 12px rgba(102,126,234,0.3),
    0 10px 30px -10px rgba(118,75,162,0.4);
}

.cta-primary:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 20px rgba(102,126,234,0.4),
    0 20px 40px -15px rgba(118,75,162,0.5);
}

.cta-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
}

.cta-soft .cta-content p {
  color: #2d3748;
}

.cta-primary .cta-content p {
  color: white;
  font-weight: 500;
}

.cta-link {
  font-weight: 700;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.cta-soft .cta-link {
  color: #667eea;
  border-bottom: 2px solid #667eea;
}

.cta-soft .cta-link:hover {
  color: #5a67d8;
  border-bottom-color: #5a67d8;
}

.cta-primary .cta-link {
  color: white;
  border-bottom: 2px solid rgba(255,255,255,0.8);
}

.cta-primary .cta-link:hover {
  border-bottom-color: white;
  letter-spacing: 0.01em;
}

.cta-heading {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #2d3748;
}

.cta-primary .cta-heading {
  color: white;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  box-shadow: 
    0 4px 12px rgba(102,126,234,0.3),
    0 10px 30px -10px rgba(118,75,162,0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 20px rgba(102,126,234,0.4),
    0 20px 40px -15px rgba(118,75,162,0.5);
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.cta-button:active {
  transform: translateY(-2px);
}

.cta-soft .cta-button {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.cta-primary .cta-button {
  background: white;
  color: #667eea;
  box-shadow: 
    0 4px 12px rgba(255,255,255,0.3),
    0 10px 30px -10px rgba(255,255,255,0.2);
}

.cta-primary .cta-button:hover {
  background: rgba(255,255,255,0.95);
  transform: translateY(-4px);
  box-shadow: 
    0 8px 20px rgba(255,255,255,0.4),
    0 20px 40px -15px rgba(255,255,255,0.3);
}

/* ========================================
   Preview/Iframe Block
   ======================================== */

.preview-block {
  background: white;
  padding: 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.08),
    0 20px 40px -15px rgba(0,0,0,0.12);
}

.preview-block {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  margin: 3rem 0;
}

.preview-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 2rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.preview-container {
  max-width: 100% !important;
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.08),
    0 20px 60px -10px rgba(102,126,234,0.15),
    0 0 0 1px rgba(0,0,0,0.04);
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-container:hover {
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.12),
    0 30px 80px -15px rgba(102,126,234,0.25),
    0 0 0 1px rgba(102,126,234,0.1);
  transform: translateY(-2px);
}



.preview-frame {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

/* ========================================
   Article Table/Grid
   ======================================== */

.article-table {
  background: white;
  padding: 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 
    0 1px 3px rgba(0,0,0,0.05),
    0 10px 30px -10px rgba(0,0,0,0.1);
}

.articles-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.article-card {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 1.75rem;
  border-radius: 1rem;
  border-left: 4px solid #667eea;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
  transform: translateX(8px);
  border-left-color: #5a67d8;
  box-shadow: 0 8px 20px rgba(102,126,234,0.15);
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.article-title a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-title a:hover {
  color: #667eea;
}

.article-purpose {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   Footer Links
   ======================================== */

.category-footer {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 2px solid #e2e8f0;
}

.footer-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 1.5rem;
}

.footer-link-block {
  margin-bottom: 1.5rem;
}

.footer-link-block p {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0.5rem 0;
}

.footer-link {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #5a67d8;
  border-bottom-color: #5a67d8;
}

.footer-description {
  font-size: 0.9375rem;
  color: #718096;
  font-style: italic;
}

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

@media (max-width: 768px) {
  .category-page {
    padding: 2rem 0;
  }

  .category-h1 {
    font-size: 2rem;
  }

  .category-header {
    padding: 2rem 1.5rem;
  }

  .category-intro {
    font-size: 1rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .content-block,
  .preview-block,
  .article-table {
    padding: 1.5rem;
  }

  .preview-frame {
    height: 500px !important;
  }

  .article-card:hover {
    transform: translateX(4px);
  }
}
