/* ==================== Immersive Blog Post View ==================== */

/* Hide back button in immersive view */
#back-btn {
  display: none !important;
}

.immersive-post-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 90vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}

#post-detail-view {
  padding-top: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.immersive-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content-centered {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.immersive-title {
  font-size: 3rem;
  line-height: 1.2;
  margin: 20px 0;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-badge-immersive {
  background-color: #c9242b;
  color: white;
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: inline-block;
  border-radius: 24px;
}

.post-meta-immersive {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
}

.post-meta-immersive .separator {
  margin: 0 15px;
  opacity: 0.6;
}

.post-body-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  top: -60px;
  z-index: 3;
}

.post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .immersive-title {
    font-size: 2rem;
  }

  .immersive-post-hero {
    height: 50vh;
  }
}

/* ==================== Two-Column Blog Layout ==================== */

.post-layout-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  margin-top: 40px;
  padding: 0 20px;
}

.post-main-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Post Body Content Styles */
.post-body h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body ul {
  margin: 20px 0;
  padding-left: 20px;
}

.post-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.post-body blockquote {
  margin: 30px 0;
  padding: 20px 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #c9242b;
  border-radius: 0 20px 20px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: #555;
}

/* Embedded Images in Content */
.post-image-full {
  margin: 30px 0;
  text-align: center;
}

.post-image-full img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.post-image-full figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
}

/* ==================== Sidebar Styles ==================== */

.post-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-section {
  background: white;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

/* Follow Us Section */
.sidebar-socials {
  display: flex;
  gap: 12px;
}

.sidebar-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f5f5f5;
  border-radius: 50%;
  color: #555;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.sidebar-socials a:hover {
  background: #c9242b;
  color: white;
  transform: translateY(-3px);
}

/* Popular Articles */
.sidebar-articles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-article-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-article-item:hover {
  transform: translateX(5px);
}

.sidebar-article-item img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.sidebar-article-info {
  flex: 1;
  min-width: 0;
}

.sidebar-article-info h4 {
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-article-item:hover h4 {
  color: #c9242b;
}

.sidebar-article-date {
  font-size: 0.75rem;
  color: #999;
}

/* Categories */
.sidebar-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-category-link {
  padding: 6px 14px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #555;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-category-link:hover {
  background: #c9242b;
  color: white;
}

/* Responsive: Stack on mobile */
@media (max-width: 992px) {
  .post-layout-container {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }
}

/* ==================== Stats Section (Views/Shares) ==================== */

.stats-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 24px !important;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-item i {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: #999;
  letter-spacing: 1px;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: #e0e0e0;
}

/* ==================== Share Buttons ==================== */

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-facebook {
  background: #1877f2;
}

.share-twitter {
  background: #1da1f2;
}

.share-line {
  background: #00b900;
}

.share-copy {
  background: #666;
}

/* ==================== Tags at Bottom ==================== */

.post-tags-bottom {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.post-tags-bottom .tag-badge {
  display: inline-block;
  margin: 4px;
}

/* ==================== Activity Immersive Hero ==================== */

.activity-immersive-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.activity-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.activity-hero-content-centered {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Side-by-Side Layout */
.activity-hero-side-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 40px 20px;
}

.activity-hero-image-box {
  flex: 0 0 45%;
  max-width: 500px;
}

.activity-hero-image-box img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.activity-hero-info-box {
  flex: 1;
  color: white;
  text-align: left;
}

.activity-hero-info-box .activity-immersive-title {
  text-align: left;
}

.activity-hero-info-box .activity-immersive-excerpt {
  text-align: left;
}

.activity-hero-info-box .activity-quick-info-immersive {
  justify-content: flex-start;
}

@media (max-width: 992px) {
  .activity-hero-side-layout {
    flex-direction: column;
    text-align: center;
  }

  .activity-hero-image-box {
    flex: none;
    max-width: 100%;
  }

  .activity-hero-info-box {
    text-align: center;
  }

  .activity-hero-info-box .activity-immersive-title,
  .activity-hero-info-box .activity-immersive-excerpt {
    text-align: center;
  }

  .activity-hero-info-box .activity-quick-info-immersive {
    justify-content: center;
  }
}

.activity-category-badge {
  background-color: #c9242b;
  color: white;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: inline-block;
  border-radius: 24px;
}

.activity-immersive-title {
  font-size: 3rem;
  line-height: 1.2;
  margin: 20px 0;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.activity-immersive-excerpt {
  font-size: 1.15rem;
  margin-bottom: 25px;
  opacity: 0.95;
  max-width: 600px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.activity-quick-info-immersive {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.activity-quick-info-immersive .activity-quick-item {
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.activity-quick-info-immersive .activity-quick-item i {
  color: #c9242b;
}

.activity-cta-button-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #c9242b;
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(201, 36, 43, 0.4);
}

.activity-cta-button-hero:hover {
  background: #a81e24;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(201, 36, 43, 0.5);
}

/* Responsive adjustments for activity hero */
@media (max-width: 768px) {
  .activity-immersive-hero {
    height: 100vh;
    min-height: 500px;
  }

  .activity-immersive-title {
    font-size: 2rem;
  }

  .activity-immersive-excerpt {
    font-size: 1rem;
  }

  .activity-quick-info-immersive {
    flex-direction: column;
    gap: 10px;
  }

  .activity-cta-button-hero {
    padding: 14px 30px;
    font-size: 1rem;
  }
}

/* Hide section padding when viewing activity detail */
#activities-page-list:has(#activity-detail-view[style*="block"]) {
  padding-top: 0 !important;
  background-color: transparent !important;
}

/* Alternative: JS will add this class */
.activity-detail-active {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background-color: transparent !important;
}
