/*
Theme Name: BedTapes
Theme URI:  https://bedtapes.com
Author:     TradeStackDev
Version:    1.0.0
Description: BedTapes.com custom theme — dark adult video platform
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:         #0F0A0A;
  --surface:    #1A1010;
  --surface2:   #241616;
  --border:     #321E1E;
  --fg:         #F0EAE8;
  --muted:      #8A7070;
  --accent:     #D44C3A;
  --accent-dim: rgba(212,76,58,.10);
  --accent-mid: rgba(212,76,58,.30);
  color-scheme: dark;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--fg);
  text-decoration: none;
  transition: color .18s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  letter-spacing: .03em;
  line-height: 1.1;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */
.bt-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   HEADER
   ============================================================ */
.bt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.bt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  padding: 0 16px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Logo */
.bt-logo {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 2rem;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--fg);
  text-decoration: none;
}

.bt-logo span {
  color: var(--accent);
}

/* Search */
.bt-search-form {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  flex: 1;
  max-width: 520px;
}

.bt-search-form input[type="search"] {
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .95rem;
  outline: none;
  padding: 8px 14px;
  width: 100%;
}

.bt-search-form input[type="search"]::placeholder {
  color: var(--muted);
}

.bt-search-form button {
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: .9rem;
  padding: 8px 16px;
  transition: background .18s;
  white-space: nowrap;
}

.bt-search-form button:hover {
  background: #c23d2b;
}

/* ============================================================
   TAG BAR
   ============================================================ */
.bt-tagbar {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bt-tagbar::-webkit-scrollbar {
  display: none;
}

.bt-tagbar-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  max-width: 1440px;
  margin: 0 auto;
  white-space: nowrap;
}

.bt-tagbar a {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
  text-transform: uppercase;
  display: inline-block;
}

.bt-tagbar a:hover,
.bt-tagbar a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.bt-main {
  min-height: calc(100vh - 200px);
  padding: 24px 0 48px;
}

/* ============================================================
   FEATURED CARD (first video hero)
   ============================================================ */
.bt-featured {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}

.bt-featured-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.bt-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.bt-featured:hover .bt-featured-thumb img {
  transform: scale(1.03);
}

.bt-featured-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px;
  background: var(--surface);
}

.bt-featured-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
}

.bt-featured-title {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  letter-spacing: .03em;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.2;
}

.bt-featured-title a {
  color: inherit;
}

.bt-featured-title a:hover {
  color: var(--accent);
}

.bt-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.bt-featured-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bt-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ============================================================
   VIDEO GRID
   ============================================================ */
.bt-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ============================================================
   VIDEO CARD
   ============================================================ */
.bt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
  cursor: pointer;
}

.bt-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-mid);
}

.bt-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface2);
}

.bt-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.bt-card:hover .bt-card-thumb img {
  transform: scale(1.05);
}

.bt-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  color: var(--muted);
  font-size: 2rem;
}

.bt-duration-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,.8);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: .02em;
}

.bt-card-info {
  padding: 10px 12px 12px;
}

.bt-card-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bt-card-title a {
  color: inherit;
}

.bt-card-title a:hover {
  color: var(--accent);
}

.bt-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--muted);
}

.bt-card-tag a {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ============================================================
   TAG CHIPS (used on single video page)
   ============================================================ */
.bt-tag-chip {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  transition: background .18s;
}

.bt-tag-chip:hover {
  background: var(--accent-mid);
  color: #fff;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.bt-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.bt-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .88rem;
  color: var(--muted);
  transition: all .18s;
}

.bt-pagination .page-numbers:hover,
.bt-pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   SINGLE VIDEO PAGE
   ============================================================ */
.bt-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.bt-video-main {
  min-width: 0;
}

/* Embed player 16:9 */
.bt-embed-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.bt-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bt-embed-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 1rem;
}

.bt-video-title {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: .03em;
  color: var(--fg);
  margin-bottom: 14px;
  line-height: 1.15;
}

.bt-video-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  color: var(--muted);
}

.bt-video-meta-row span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bt-video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.bt-video-description {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.7;
}

/* Breadcrumb */
.bt-breadcrumb {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bt-breadcrumb a {
  color: var(--muted);
}

.bt-breadcrumb a:hover {
  color: var(--accent);
}

.bt-breadcrumb .sep {
  color: var(--border);
}

/* Sidebar */
.bt-sidebar {
  min-width: 0;
}

.bt-sidebar-heading {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.2rem;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.bt-sidebar-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bt-sidebar-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  transition: border-color .18s;
}

.bt-sidebar-card:hover {
  border-color: var(--accent-mid);
}

.bt-sidebar-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.bt-sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bt-sidebar-info {
  padding: 8px 10px 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.bt-sidebar-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bt-sidebar-title a {
  color: inherit;
}

.bt-sidebar-title a:hover {
  color: var(--accent);
}

.bt-sidebar-duration {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================================
   ARCHIVE / TAXONOMY HEADER
   ============================================================ */
.bt-archive-header {
  margin-bottom: 24px;
}

.bt-archive-title {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: .04em;
  color: var(--fg);
}

.bt-archive-title span {
  color: var(--accent);
}

.bt-archive-count {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.bt-section-heading {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.5rem;
  letter-spacing: .05em;
  color: var(--fg);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.bt-section-heading::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================================
   LEGAL PAGE
   ============================================================ */
.bt-legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

.bt-legal-wrap h1 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: .03em;
}

.bt-legal-wrap h2 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent);
  margin: 0 0 12px;
  letter-spacing: .03em;
}

.bt-legal-wrap h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin: 28px 0 10px;
  letter-spacing: 0;
}

.bt-legal-wrap p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: .95rem;
}

.bt-legal-wrap ul,
.bt-legal-wrap ol {
  list-style: disc;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.bt-legal-wrap ol {
  list-style: decimal;
}

.bt-legal-wrap li {
  margin-bottom: .4rem;
}

.bt-legal-wrap a {
  color: var(--accent);
  text-decoration: underline;
}

.bt-legal-wrap a:hover {
  color: #e05c49;
}

.bt-legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 32px;
  transition: color .18s;
}

.bt-legal-back:hover {
  color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.bt-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 36px 16px;
}

.bt-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.bt-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-bottom: 20px;
}

.bt-footer-links a {
  color: var(--muted);
  font-size: .82rem;
  transition: color .18s;
}

.bt-footer-links a:hover {
  color: var(--accent);
}

.bt-footer-legal {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.65;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.bt-footer-legal a {
  color: var(--muted);
  text-decoration: underline;
}

.bt-footer-legal a:hover {
  color: var(--accent);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.bt-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 16px;
  min-height: 60vh;
}

.bt-404-code {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(5rem, 15vw, 10rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
}

.bt-404-title {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--fg);
  margin-bottom: 12px;
}

.bt-404-text {
  color: var(--muted);
  font-size: .95rem;
  max-width: 400px;
  margin-bottom: 28px;
}

.bt-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: 10px 24px;
  border-radius: 6px;
  transition: background .18s;
}

.bt-btn:hover {
  background: #c23d2b;
  color: #fff;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.bt-empty {
  text-align: center;
  padding: 80px 16px;
  color: var(--muted);
}

.bt-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: .4;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .bt-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .bt-single-layout {
    grid-template-columns: 1fr 280px;
  }

  .bt-featured {
    grid-template-columns: 1fr 280px;
  }
}

/* Tablet portrait: 768px */
@media (max-width: 768px) {
  .bt-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .bt-featured {
    grid-template-columns: 1fr;
  }

  .bt-featured-info {
    padding: 20px 16px;
  }

  .bt-single-layout {
    grid-template-columns: 1fr;
  }

  .bt-sidebar {
    display: none;
  }

  .bt-header-inner {
    gap: 10px;
  }
}

/* Mobile: 480px */
@media (max-width: 480px) {
  .bt-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .bt-logo {
    font-size: 1.5rem;
  }

  .bt-search-form {
    max-width: none;
  }

  .bt-card-title {
    font-size: .8rem;
  }

  .bt-featured-title {
    font-size: 1.2rem;
  }
}

/* Extra small: 360px */
@media (max-width: 360px) {
  .bt-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* ============================================================
   WORDPRESS ALIGNMENT HELPERS
   ============================================================ */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.alignwide  { width: 100%; }

/* ============================================================
   SCREEN READER TEXT
   ============================================================ */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
