/* ========================================
   Category Details Page Styles
   File: assets/css/pages/category-details.css
======================================== */

/* =========================
   Page Title Overlay
========================= */
.page-title .overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.85) 0%, rgba(15,23,42,0.9) 100%);
}

.page-title .content-box {
  position: relative;
  z-index: 2;
}

.page-title .content-box h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
}

.page-title .bread-crumb li a,
.page-title .bread-crumb li {
  color: rgba(255,255,255,0.8);
}

.page-title .bread-crumb li a:hover {
  color: #fff;
}

/* =========================
   Stats Strip
========================= */
.cat-stats-strip {
  position: relative;
  z-index: 10;
  margin-top: -40px;
}

.cat-stats-strip .stats-row {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.cat-stats-strip .stat-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.cat-stats-strip .stat-item:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.cat-stats-strip .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.cat-stats-strip .stat-info {
  display: flex;
  flex-direction: column;
}

.cat-stats-strip .stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
  margin-bottom: 4px;
}

.cat-stats-strip .stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* =========================
   About Section
========================= */
.cat-about-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cat-about-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.cat-about-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cat-about-image:hover img {
  transform: scale(1.03);
}

.cat-about-text .sub-title {
  color: #7c3aed;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

.cat-about-text h2 {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 20px;
  line-height: 1.3;
}

.cat-about-text p {
  font-size: 16px;
  color: #475569;
  line-height: 1.8;
  margin: 0;
}

/* =========================
   Events Section
========================= */
.sec-title {
  margin-bottom: 40px;
}

.sec-title .sub-title {
  color: #7c3aed;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.sec-title h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
}

.cat-events-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cat-event-card {
  display: flex;
  gap: 24px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.cat-event-card:hover {
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: transparent;
}

.cat-event-img {
  width: 280px;
  flex-shrink: 0;
  overflow: hidden;
}

.cat-event-img img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-event-card:hover .cat-event-img img {
  transform: scale(1.05);
}

.cat-event-info {
  flex: 1;
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
}

.cat-event-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7c3aed;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cat-event-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
  line-height: 1.4;
}

.cat-event-info h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.cat-event-info h3 a:hover {
  color: #7c3aed;
}

.cat-event-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 12px;
}

.cat-event-info p {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 16px;
}

.cat-event-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7c3aed;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.cat-event-link:hover {
  gap: 12px;
}

/* =========================
   Empty State
========================= */
.cat-empty {
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 16px;
  border: 2px dashed #e2e8f0;
}

.cat-empty i {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 16px;
  display: block;
}

.cat-empty p {
  font-size: 16px;
  color: #94a3b8;
  margin: 0;
}

/* =========================
   Sidebar Widget
========================= */
.cat-sidebar-widget {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.widget-title {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.widget-title h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.pillar-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.pillar-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.pillar-item.active {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  border-color: #c4b5fd;
}

.pillar-thumb {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.pillar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pillar-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

.pillar-item.active .pillar-name {
  color: #7c3aed;
}

.pillar-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.3;
  margin-top: 2px;
}

/* Quick Stats */
.quick-stats {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qs-row {
  display: flex;
  gap: 12px;
}

.qs-item {
  flex: 1;
  text-align: center;
  padding: 20px 16px;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.qs-num {
  font-size: 26px;
  font-weight: 800;
  color: #7c3aed;
  line-height: 1;
  margin-bottom: 6px;
}

.qs-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* CTA Sidebar */
.cat-sidebar-cta {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
}

.cat-sidebar-cta .cta-inner {
  color: #fff;
}

.cat-sidebar-cta i {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
  opacity: 0.9;
}

.cat-sidebar-cta h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}

.cat-sidebar-cta p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 20px;
  opacity: 0.85;
}

.cat-sidebar-cta .theme-btn.btn-one {
  background: #fff;
  color: #7c3aed;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
}

.cat-sidebar-cta .theme-btn.btn-one:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

/* =========================
   Utility
========================= */
.mb_50 { margin-bottom: 50px; }
.mb_40 { margin-bottom: 40px; }

/* =========================
   RTL Support
========================= */
[dir="rtl"] .page-title .content-box h1 {
  font-family: "Noto Kufi Arabic", "Tajawal", "Cairo", sans-serif;
  letter-spacing: 0;
}

[dir="rtl"] .cat-about-text h2 {
  font-family: "Noto Kufi Arabic", "Tajawal", "Cairo", sans-serif;
}

[dir="rtl"] .cat-event-link i {
  transform: rotate(180deg);
}

[dir="rtl"] .cat-event-info {
  padding: 24px 0 24px 24px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 991px) {
  .cat-stats-strip .stats-row {
    flex-direction: column;
    gap: 16px;
  }

  .cat-event-card {
    flex-direction: column;
  }

  .cat-event-img {
    width: 100%;
    height: 220px;
  }

  .cat-event-info {
    padding: 20px;
  }

  [dir="rtl"] .cat-event-info {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .page-title .content-box h1 {
    font-size: 28px;
  }

  .cat-about-text h2 {
    font-size: 24px;
  }

  .cat-event-img {
    height: 180px;
  }

  .cat-stats-strip .stat-item {
    padding: 16px;
  }

  .cat-stats-strip .stat-number {
    font-size: 22px;
  }

  .cat-stats-strip .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}
