/* =====================================================
   SANATAN.ME - Global Pages Styles
   Consistent styling across all pages
   ===================================================== */

/* =====================================================
   1. PAGE HERO SECTIONS
   ===================================================== */
.page-hero {
  position: relative;
  color: white;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

.page-hero .breadcrumb {
  justify-content: center;
  margin-bottom: 1rem;
}

.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s;
}

.page-hero .breadcrumb a:hover {
  color: white;
}

.page-hero .breadcrumb-item.active {
  color: rgba(255,255,255,0.65);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* =====================================================
   2. CONTENT CARDS
   ===================================================== */
.content-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  overflow: hidden;
  background: white;
}

.content-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.content-card .card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5f0, #ffe8d6);
}

.content-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.content-card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

.content-card .card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 4rem;
  color: var(--secondary-color);
  opacity: 0.4;
}

.content-card .card-body {
  padding: 1.5rem;
}

.content-card .card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.content-card .card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

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

.content-card .card-text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-card .card-meta {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.75rem;
}

.content-card .card-meta i {
  color: var(--primary-color);
  margin-right: 4px;
}

/* =====================================================
   3. CATEGORY SECTIONS
   ===================================================== */
.category-section {
  margin-bottom: 3rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--secondary-color);
}

.category-header .cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  flex-shrink: 0;
}

.category-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-color);
  margin: 0;
  flex-grow: 1;
}

.category-header .badge {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* =====================================================
   4. FILTER BUTTONS
   ===================================================== */
.filter-section {
  padding: 1rem 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.filter-btn {
  border-radius: 25px;
  padding: 8px 20px;
  margin: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid #dee2e6;
  background: white;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--light-bg);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* =====================================================
   5. DETAIL PAGE STYLES
   ===================================================== */
.detail-hero {
  position: relative;
  color: white;
  padding: 100px 0 80px;
  overflow: hidden;
}

.detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.detail-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,107,53,0.7) 0%, rgba(247,147,30,0.7) 100%);
  z-index: 1;
}

.detail-hero .container {
  position: relative;
  z-index: 2;
}

.detail-content {
  padding: 3rem 0;
  background: linear-gradient(180deg, #fff 0%, var(--light-bg) 100%);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--secondary-color);
  display: inline-block;
}

.section-title i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.content-block {
  margin-bottom: 2.5rem;
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.content-block p,
.content-block div {
  line-height: 1.8;
  color: #444;
}

/* =====================================================
   6. SIDEBAR STYLES
   ===================================================== */
.info-sidebar .card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.info-sidebar .card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border: none;
}

.info-sidebar .info-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.info-sidebar .info-item i {
  color: var(--primary-color);
  width: 24px;
  font-size: 1.1rem;
}

.info-sidebar .info-item small {
  font-size: 0.75rem;
  color: #888;
}

.info-sidebar .info-item strong {
  color: var(--dark-color);
}

.info-sidebar .info-item a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.3s;
}

.info-sidebar .info-item a:hover {
  color: var(--primary-color);
}

/* =====================================================
   7. BADGES & LABELS
   ===================================================== */
.significance-badge {
  display: inline-block;
  background: var(--light-bg);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 15px;
  margin-bottom: 0.5rem;
}

.heritage-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 15px;
  margin-bottom: 0.5rem;
  margin-left: 4px;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--light-bg);
  border-radius: 20px;
  margin: 4px;
  font-size: 0.85rem;
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag-badge:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: translateY(-2px);
}

.tag-badge img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* =====================================================
   8. EMPTY STATE
   ===================================================== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #888;
}

.empty-state .empty-icon {
  font-size: 5rem;
  color: #ddd;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
}

.empty-state p {
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* =====================================================
   9. RELATED ITEMS
   ===================================================== */
.related-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.related-card img {
  height: 140px;
  object-fit: cover;
  width: 100%;
}

.related-card .card-body {
  padding: 1rem;
}

.related-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.related-card .card-title a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* =====================================================
   10. GALLERY STYLES
   ===================================================== */
.image-gallery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.image-gallery-main {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  margin-bottom: 1rem;
}

.image-gallery-main img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: linear-gradient(135deg, #fff5f0, #ffe8d6);
}

.image-gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.image-gallery-thumb:hover,
.image-gallery-thumb.active {
  border-color: var(--secondary-color);
  transform: scale(1.05);
}

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

/* =====================================================
   11. LANGUAGE TABS
   ===================================================== */
.lang-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.lang-tabs .nav-link {
  border-radius: 25px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid #dee2e6;
  background: white;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.lang-tabs .nav-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.lang-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: transparent;
  color: white;
}

/* =====================================================
   12. AOS ANIMATION ENHANCEMENTS
   ===================================================== */
[data-aos="fade-up-card"] {
  opacity: 0;
  transform: translateY(30px);
  transition-property: opacity, transform;
}

[data-aos="fade-up-card"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="zoom-in-card"] {
  opacity: 0;
  transform: scale(0.9);
  transition-property: opacity, transform;
}

[data-aos="zoom-in-card"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay classes */
.aos-delay-100 { transition-delay: 100ms !important; }
.aos-delay-200 { transition-delay: 200ms !important; }
.aos-delay-300 { transition-delay: 300ms !important; }
.aos-delay-400 { transition-delay: 400ms !important; }

/* =====================================================
   13. RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 991px) {
  .page-hero {
    padding: 60px 0;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .detail-hero {
    padding: 80px 0 60px;
  }

  .category-header {
    flex-wrap: wrap;
  }

  .category-header .badge {
    margin-top: 0.5rem;
  }
}

@media (max-width: 767px) {
  .page-hero {
    padding: 50px 0;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .content-card .card-img-wrapper {
    height: 180px;
  }

  .category-header .cat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .category-header h2 {
    font-size: 1.25rem;
  }

  .filter-btn {
    padding: 6px 16px;
    font-size: 0.85rem;
  }

  .content-block {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.1rem;
  }
}

/* =====================================================
   14. PRINT STYLES
   ===================================================== */
@media print {
  .go-to-top-btn,
  .filter-section,
  .navbar-custom,
  .footer-premium {
    display: none !important;
  }

  .content-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .page-hero,
  .detail-hero {
    background: none !important;
    color: var(--dark-color) !important;
    padding: 20px 0;
  }

  .page-hero::before,
  .page-hero::after,
  .detail-hero::before,
  .detail-hero::after {
    display: none;
  }
}
