/* ===================================
   Single Post Page Styles
   =================================== */

/* Breadcrumb inside Header */
.breadcrumb {
  margin-bottom: 25px;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-light);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 10px;
  color: var(--text-lighter);
}

.breadcrumb a {
  color: var(--text-light);
  transition: var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--primary-gold);
}

.breadcrumb span {
  color: var(--primary-gold);
  font-weight: 600;
}

/* Media Gallery */
.media-gallery {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 20, 20, 1) 0%, rgba(26, 26, 26, 1) 100%);
  padding: 0;
  margin: 0 auto 80px;
  max-width: 1600px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(200, 159, 93, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 1px rgba(200, 159, 93, 0.3);
}

.gallery-main {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: #000;
}

.gallery-main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-main-image.fade-out {
  opacity: 0;
  transform: scale(1.05);
}

.gallery-main-image.fade-in {
  opacity: 1;
  transform: scale(1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  opacity: 0;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.3) 0%, 
    transparent 20%, 
    transparent 80%, 
    rgba(0, 0, 0, 0.3) 100%);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.gallery-main:hover .gallery-overlay {
  opacity: 1;
  pointer-events: all;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(200, 159, 93, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(200, 159, 93, 0.4), 0 2px 10px rgba(0, 0, 0, 0.4);
}

.gallery-nav:hover {
  background: rgba(200, 159, 93, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 40px rgba(200, 159, 93, 0.6), 0 4px 15px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.98);
}

.gallery-prev {
  left: 25px;
}

.gallery-next {
  right: 25px;
}

.gallery-thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 30px 50px;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 1) 0%, rgba(22, 22, 22, 1) 100%);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-gold) rgba(255, 255, 255, 0.08);
  scroll-behavior: smooth;
  border-top: 1px solid rgba(200, 159, 93, 0.1);
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--primary-gold), var(--gold-light));
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--gold-dark), var(--primary-gold));
}

.thumbnail {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: #000;
  padding: 0;
  position: relative;
  transform: scale(1);
  opacity: 0.6;
}

.thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 159, 93, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail:hover {
  border-color: rgba(200, 159, 93, 0.5);
  transform: scale(1.05) translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(200, 159, 93, 0.25), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.thumbnail:hover::before {
  opacity: 1;
}

.thumbnail:hover img {
  transform: scale(1.15);
}

.thumbnail.active {
  border-color: var(--primary-gold);
  transform: scale(1.08) translateY(-3px);
  opacity: 1;
  box-shadow: 0 8px 30px rgba(200, 159, 93, 0.5), 0 3px 10px rgba(0, 0, 0, 0.4);
}

.thumbnail.active::before {
  opacity: 0.2;
}

.thumbnail.active img {
  transform: scale(1.1);
}

/* Post Content Wrapper */
.post-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  padding: 60px 0;
}

/* Main Content */
.post-main {
  max-width: 800px;
}

.post-header {
  padding: 160px 0 40px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.post-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 25px;
}

.post-meta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--text-lighter);
  font-size: 14px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-item i {
  color: var(--primary-gold);
  font-size: 16px;
}

/* Post Body */
.post-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-light);
}

.post-body .lead {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 30px;
  padding-left: 20px;
  border-left: 4px solid var(--primary-gold);
}

.post-body h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 40px 0 20px;
  line-height: 1.3;
}

.post-body p {
  margin-bottom: 25px;
}

.post-body a {
  color: var(--primary-gold);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.post-body a:hover {
  color: var(--gold-dark);
}

.post-body ul,
.post-body ol {
  margin: 25px 0;
  padding-left: 30px;
}

.post-body li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.post-body blockquote {
  margin: 30px 0;
  padding: 25px 30px;
  background: var(--light-cream);
  border-left: 4px solid var(--primary-gold);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.post-body img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 30px 0;
}

/* Tags */
.post-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 50px 0;
  padding: 30px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tags-label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 15px;
}

.tag {
  padding: 8px 18px;
  background: rgba(200, 159, 93, 0.08);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  border-radius: 30px;
  transition: var(--transition-smooth);
}

.tag:hover {
  background: var(--primary-gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* Share Buttons */
.post-share {
  margin-top: 40px;
}

.post-share h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  transition: var(--transition-smooth);
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.linkedin {
  background: #0a66c2;
}

.share-btn.whatsapp {
  background: #25d366;
}

.share-btn.email {
  background: #ea4335;
}

.share-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-gold);
}

/* Author Box */
.author-box {
  text-align: center;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 3px solid var(--primary-gold);
}

.author-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.author-bio {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Related Posts */
.related-post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.related-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.related-post-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.related-post-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.related-post-content h4 a {
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.related-post-content h4 a:hover {
  color: var(--primary-gold);
}

.related-date {
  font-size: 0.85rem;
  color: var(--text-lighter);
}

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  text-align: center;
}

.cta-widget h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.cta-widget p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 35px;
  background: var(--white);
  color: var(--primary-gold);
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-smooth);
}

.cta-btn:hover {
  background: var(--dark-bg);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
  .post-content-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .post-sidebar {
    position: static;
  }

  .gallery-main {
    height: 450px;
  }

  .post-title {
    font-size: 2.5rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .breadcrumb-container {
    padding: 120px 0 20px;
  }

  .breadcrumb ol {
    font-size: 12px;
    gap: 6px;
  }

  .breadcrumb li:not(:last-child)::after {
    margin-left: 6px;
  }

  .gallery-main {
    height: 300px;
  }

  .gallery-thumbnails {
    padding: 15px 20px;
    gap: 10px;
  }

  .thumbnail {
    width: 90px;
    height: 60px;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .post-content-wrapper {
    padding: 40px 0;
    gap: 40px;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-meta {
    gap: 15px;
    font-size: 13px;
  }

  .post-body {
    font-size: 1rem;
  }

  .post-body .lead {
    font-size: 1.15rem;
  }

  .post-body h2 {
    font-size: 1.6rem;
    margin: 30px 0 15px;
  }

  .sidebar-widget {
    padding: 25px 20px;
  }

  .share-buttons {
    gap: 10px;
  }

  .share-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Extra Small */
@media (max-width: 480px) {
  .post-title {
    font-size: 1.7rem;
  }

  .gallery-main {
    height: 250px;
  }

  .thumbnail {
    width: 70px;
    height: 50px;
  }
}

/* RTL Support */
body.rtl .breadcrumb li:not(:last-child)::after {
  margin-left: 0;
  margin-right: 10px;
}

body.rtl .post-body .lead {
  padding-left: 0;
  padding-right: 20px;
  border-left: none;
  border-right: 4px solid var(--primary-gold);
}

body.rtl .post-body ul,
body.rtl .post-body ol {
  padding-left: 0;
  padding-right: 30px;
}

body.rtl .post-body blockquote {
  border-left: none;
  border-right: 4px solid var(--primary-gold);
}
