/**
 * BBCPress - Category Multi-Layout Design System (11 Distinct Templates)
 * Matches official BBC rubrics: News, Sport, Business, Tech, Culture, Arts, Travel, Earth, Health, Video, Audio
 */

/* Category Header Banner */
.bbc-cat-header {
  padding: 24px 0 16px;
  border-bottom: 2px solid var(--bbc-charcoal);
  margin-bottom: 24px;
}

.bbc-cat-title {
  font-family: var(--bbc-font-sans);
  font-size: 36px;
  font-weight: 800;
  color: var(--bbc-charcoal);
  line-height: 1.1;
  text-transform: capitalize;
}

.bbc-cat-description {
  font-size: 15px;
  color: var(--bbc-grey-mid);
  margin-top: 8px;
  max-width: 800px;
}

/* =========================================
   STYLE 1: News Editorial Lead
   ========================================= */
.bbc-cat-style-1 .bbc-news-lead-row {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bbc-border-color);
}

/* Category Header Styles per Style */
.bbc-sport-header { border-bottom: 3px solid #ffd230; }
.bbc-biz-header { border-bottom: 3px solid #0055aa; }
.bbc-tech-header { border-bottom: 3px solid #0077ee; }
.bbc-culture-header { border-bottom: 3px solid #b80000; }
.bbc-arts-header { border-bottom: 3px solid #ffcc00; }
.bbc-travel-header { border-bottom: 3px solid #00887a; }
.bbc-earth-header { border-bottom: 3px solid #0d8236; }
.bbc-health-header { border-bottom: 3px solid #008080; }
.bbc-video-header { border-bottom: 3px solid #cc0101; }
.bbc-audio-header { border-bottom: 3px solid #ff6600; }

.bbc-sport-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #ffd230;
  color: #000000;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 6px;
  z-index: 2;
  text-transform: uppercase;
}

/* =========================================
   STYLE 5: Culture & Entertainment
   ========================================= */
.bbc-culture-mag-grid {
  margin-bottom: 28px;
}

/* =========================================
   STYLE 6: Arts & Design
   ========================================= */
.bbc-arts-master-hero {
  background-color: var(--bbc-black);
  color: var(--bbc-white);
  display: grid;
  grid-template-columns: 7fr 5fr;
  margin-bottom: 32px;
  align-items: center;
}

.bbc-arts-master-hero .bbc-arts-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bbc-arts-master-hero .bbc-arts-hero-info {
  padding: 36px;
}

.bbc-arts-badge {
  color: #ffd230;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.bbc-arts-hero-title a {
  color: var(--bbc-white);
  font-size: 32px;
  line-height: 1.15;
  margin-top: 10px;
  margin-bottom: 12px;
  display: block;
}

.bbc-arts-hero-title a:hover {
  color: var(--bbc-red);
}

.bbc-arts-hero-desc {
  color: #cccccc;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}

@media (max-width: 850px) {
  .bbc-arts-master-hero {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   STYLE 7: Travel & Destinations
   ========================================= */
.bbc-travel-hero-block {
  background-color: var(--bbc-grey-bg);
  margin-bottom: 32px;
}

.bbc-travel-hero-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* =========================================
   STYLE 8: Earth & Climate
   ========================================= */
.bbc-earth-tag {
  color: #0d8236;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
}

/* =========================================
   STYLE 10: Video & Watch Showcase
   ========================================= */
.bbc-video-cinema-hero {
  background-color: #121212;
  color: #ffffff;
  margin-bottom: 32px;
}

.bbc-video-player-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #000;
}

.bbc-video-player-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.bbc-video-player-thumb:hover img {
  opacity: 1;
}

.bbc-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(204, 1, 1, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.2s, background-color 0.2s;
}

.bbc-video-play-btn svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  margin-left: 3px;
}

.bbc-video-player-thumb:hover .bbc-video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: #cc0101;
}

.bbc-video-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(0,0,0,0.8);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

.bbc-video-cinema-details {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bbc-video-cinema-details a {
  color: #ffffff;
}

.bbc-video-cinema-details a:hover {
  color: var(--bbc-red);
}

.bbc-video-desc {
  color: #aaaaaa;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 8px;
}

.bbc-video-mini-play {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
}

/* =========================================
   STYLE 11: Audio & Podcasts Showcase
   ========================================= */
.bbc-audio-badge {
  display: inline-block;
  background-color: #ff6600;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 6px;
}

.bbc-audio-lead-hero {
  background-color: #1a1a1a;
  color: #ffffff;
  margin-bottom: 32px;
  padding: 24px;
}

.bbc-audio-cover-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
}

.bbc-audio-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bbc-audio-play-circle {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background-color: #ff6600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.bbc-audio-play-circle svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  margin-left: 2px;
}

.bbc-audio-lead-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.bbc-audio-lead-details a {
  color: #ffffff;
}

.bbc-audio-lead-details a:hover {
  color: #ff6600;
}

.bbc-audio-pill {
  color: #ff6600;
  font-weight: 800;
  font-size: 12px;
}

.bbc-audio-desc {
  color: #bbbbbb;
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 0 16px;
}

.bbc-audio-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bbc-audio-duration {
  font-size: 13px;
  color: #999999;
}

.bbc-audio-square-thumb {
  aspect-ratio: 1 / 1 !important;
}

.bbc-audio-mini-play {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
}

/* =========================================
   Horizontal Feed & List Rows (Used across templates)
   ========================================= */
.bbc-horizontal-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  width: 100%;
}

.bbc-card-horizontal {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bbc-border-color);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.bbc-card-horizontal:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bbc-card-horizontal .bbc-card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bbc-card-horizontal .bbc-card-title {
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.bbc-card-horizontal .bbc-card-excerpt {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--bbc-grey-dark);
}

.bbc-card-horizontal .bbc-card-media {
  width: 110px;
  height: 72px;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  margin-bottom: 0;
  border-radius: 2px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .bbc-card-horizontal {
    gap: 12px;
  }
  .bbc-card-horizontal .bbc-card-media {
    width: 90px;
    height: 60px;
  }
}

/* =========================================
   BBC Pagination Bar (Crisp & Clean)
   ========================================= */
.bbc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bbc-border-color);
  width: 100%;
  clear: both;
}

.bbc-pagination ul.page-numbers {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.bbc-pagination ul.page-numbers li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
}

.bbc-pagination .page-numbers:not(ul) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 4px;
  font-family: var(--bbc-font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--bbc-charcoal);
  background-color: var(--bbc-white);
  border: 1px solid var(--bbc-grey-border);
  text-decoration: none;
  transition: all var(--bbc-transition-fast);
  line-height: 1;
}

.bbc-pagination .page-numbers:not(ul):hover {
  background-color: var(--bbc-grey-bg);
  border-color: var(--bbc-charcoal);
  color: var(--bbc-black);
}

.bbc-pagination span.page-numbers.current {
  background-color: var(--bbc-black) !important;
  border-color: var(--bbc-black) !important;
  color: var(--bbc-white) !important;
}

.bbc-pagination a.next,
.bbc-pagination a.prev {
  min-width: auto;
  padding: 0 16px;
  border-radius: 20px;
  gap: 6px;
}
