/* Premium Article Page Styles */
:root {
  --primary-color: #2c63ff;
  --primary-hover: #1e4bd1;
  --danger-color: #ff4444;
  --warning-color: #ffbb33;
  --success-color: #00c851;
  --bg-light: #f6f8fb;
  --card-bg: #fff;
  --text-main: #333;
  --text-muted: #888;
  --border-color: #eee;
  --radius-md: 10px;
  --radius-lg: 15px;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
}

body {
  background-color: #f5f7fa;
}

.article-container {
  padding-top: 20px;
}

/* Card Common */
.premium-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  border: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.premium-card:hover {
  box-shadow: var(--shadow-md);
}

/* Breadcrumb */
.breadcrumb-box {
  padding: 15px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-box a {
  color: var(--text-muted);
}
.breadcrumb-box a:hover {
  color: var(--primary-color);
}

/* Header & Media */
.article-header-box {
  margin-bottom: 20px;
}
.article-title-lg {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  line-height: 1.4;
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #999;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-media-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  margin-bottom: 20px;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn-overlay {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
}
.play-btn-overlay:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.4);
}
.play-btn-overlay i {
  font-size: 30px;
  color: #fff;
  margin-left: 5px;
}

/* Tabs */
.article-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 25px;
  background: #fff;
  border-radius: 30px;
  color: #666;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tab-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(44, 99, 255, 0.3);
}

/* Content Area */
.content-box {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
  line-height: 1;
}

.intro-quote {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
  position: relative;
  margin-bottom: 30px;
  border-left: 4px solid #ddd;
}

/* Locked Content */
.locked-content-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #f0f5ff 100%);
  border: 1px dashed var(--primary-color);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}
.lock-icon {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 15px;
  opacity: 0.8;
}

.buy-access-btn {
  background: #ff4444;
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.buy-access-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 68, 68, 0.5);
  color: #fff;
}

/* Sidebar Widgets */
.author-widget {
  text-align: center;
  padding: 25px;
}
.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.author-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 5px;
}
.author-badge {
  background: #fff8e1;
  color: #ffa000;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.author-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  border-top: 1px solid #f5f5f5;
  padding-top: 15px;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-weight: 700;
  font-size: 18px;
  color: #333;
}
.stat-label {
  font-size: 12px;
  color: #999;
}

/* Purchase Widget */
.purchase-widget {
  background: #fff;
  border-radius: 8px; /* Slightly squarer as per image */
  overflow: hidden;
}
.price-header {
  background: #333;
  color: #ebdcb6; /* Goldish text */
  padding: 15px;
  text-align: center;
  position: relative;
  font-size: 14px;
}
.price-tag-wrap {
  background: #fdf6ec; /* Light gold bg */
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #e6d3b3;
}
.price-item {
  text-align: center;
  flex: 1;
}
.vip-free-badge {
  color: #ff5722;
  font-size: 12px;
  font-weight: bold;
}
.price-val-lg {
  font-size: 20px;
  font-weight: 800;
  color: #d4a356;
}

.buy-actions {
  padding: 20px;
  text-align: center;
}
.btn-block-danger {
  display: block;
  width: 100%;
  padding: 12px;
  background: #e73c3e; /* Specific red */
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
}
.buy-info-text {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
}

/* List Widgets */
.sidebar-list-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  align-items: center;
}
.item-thumb {
  width: 60px;
  height: 45px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.item-info {
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #555;
  font-weight: 500;
}

.rank-list-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: #666;
}
.rank-num {
  width: 20px;
  height: 20px;
  background: #eee;
  color: #999;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}
.rank-list-item:nth-child(1) .rank-num {
  background: #ff4444;
  color: #fff;
}
.rank-list-item:nth-child(2) .rank-num {
  background: #ffbb33;
  color: #fff;
}
.rank-list-item:nth-child(3) .rank-num {
  background: #00c851;
  color: #fff;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
  .article-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
  }
}

/* V5 New Styles */
.article-header-v5 {
  margin-bottom: 25px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 20px;
}
.article-title-v5 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}
.article-meta-v5 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #999;
  font-size: 13px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Tabs V5 */
.tabs-v5 {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.tab-btn-v5 {
  padding: 8px 20px;
  border-radius: 4px;
  border: 1px solid #e0e0e0; /* Default border */
  background: #fff;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.tab-btn-v5:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.tab-btn-v5.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Action Bar V5 */
.action-bar-v5 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-top: 30px;
  margin-bottom: 30px; /* Space before prev/next */
}
.author-info-v5 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar-v5 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.action-buttons-v5 {
  display: flex;
  gap: 10px;
}
.action-btn {
  padding: 6px 15px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.btn-share {
  background: #eeffff;
  color: #00bcd4;
}
.btn-share:hover {
  background: #00bcd4;
  color: #fff;
}
.btn-collect {
  background: #f0f9eb;
  color: #67c23a;
}
.btn-collect:hover {
  background: #67c23a;
  color: #fff;
}
.btn-like {
  background: #fef0f0;
  color: #f56c6c;
}
.btn-like:hover {
  background: #f56c6c;
  color: #fff;
}

/* Disclaimer Box */
.disclaimer-box {
  background: #f7f8fa;
  padding: 15px 20px;
  border-radius: 4px;
  color: #999;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 30px;
  display: flex;
  gap: 10px;
}

/* Navigation Prev/Next (Redesigned) */
.nav-prev-next {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  /* Removed container styling to let items float */
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /* IE10+ fix for gap */
  .nav-item { margin-right: 20px; }
  .nav-item:last-child { margin-right: 0; }
}
.nav-item {
  flex: 1;
  padding: 25px 20px; /* Increased padding */
  background: #fff;
  border-radius: 8px; /* Card style */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space out arrow and text */
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent; 
  min-width: 0; /* Flexbox text truncation fix */
}
.nav-item:hover:not(.disabled) {
  transform: translateY(-5px); /* Floating effect */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Enhanced shadow */
  border-color: #eee;
}
.nav-item.disabled {
  background: #f9f9f9;
  cursor: not-allowed;
  opacity: 0.7;
}
.nav-text-container {
    display: flex;
    flex-direction: column;
    flex: 1; /* Take remaining space */
    width: auto; /* Allow shrink */
    min-width: 0; /* Enable text truncation */
}
.nav-prev .nav-text-container {
    align-items: flex-end; /* Prev: Text on Right */
    margin-left: 15px; /* Spacing from arrow */
    text-align: right;
}
.nav-next .nav-text-container {
    align-items: flex-start; /* Next: Text on Left */
    margin-right: 15px; /* Spacing from arrow */
    text-align: left;
}

.nav-label {
  font-size: 13px; /* Slightly larger for readability */
  color: #bbb; /* Keeping light color */
  margin-bottom: 5px;
}
.nav-title {
  font-size: 15px;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%; /* logic handled by flex min-width */
  font-weight: 500;
}
.nav-item:hover .nav-title {
    color: var(--primary-color);
}
.nav-arrow {
  display: flex; /* Show arrows */
  align-items: center;
  justify-content: center;
  color: #999; /* Darker for visibility */
  font-size: 24px;
  transition: all 0.3s;
  /* Reset positioning */
  position: static; 
  transform: none;
  flex-shrink: 0; /* Prevent collapsing */
}
.nav-item:hover .nav-arrow {
    color: var(--primary-color);
}
.nav-prev:hover .nav-arrow {
    transform: translateX(-3px);
}
.nav-next:hover .nav-arrow {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .nav-prev-next {
        flex-direction: column;
        gap: 15px;
    }
}

/* Related Grid V5 */
.related-grid-v5 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.related-card-v5 {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}
.related-card-v5:hover {
  transform: translateY(-3px);
}
.related-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.related-info {
  padding: 10px;
}
.related-title {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .action-bar-v5 {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .related-grid-v5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
