/* ═══════════════════════════════════════════════════════════════
   DADDYS BEDROOM — Premium Dark Boudoir Theme
   Pure CSS redesign — no PHP changes needed
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
  --bg-deep:       #0a0a0f;
  --bg-card:       rgba(18, 14, 22, 0.85);
  --bg-glass:      rgba(255, 255, 255, 0.03);
  --border-glass:  rgba(255, 255, 255, 0.06);
  --accent:        #c0394f;
  --accent-light:  #e8506a;
  --accent-glow:   rgba(192, 57, 79, 0.35);
  --gold:          #d4a056;
  --gold-light:    #f0c97e;
  --text-primary:  #f0e6ea;
  --text-secondary:#9a8a91;
  --text-muted:    #5e4f56;
  --main-radius:   12px;
  --main-padding:  16px;
  --card-shadow:   0 8px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(192,57,79,0.08);
  --transition:    all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Global Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 20px 10px;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(192,57,79,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(212,160,86,0.08) 0%, transparent 50%),
    url(img/logo.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-blend-mode: overlay;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(10,10,15,0.92) 0%, 
    rgba(10,10,15,0.80) 50%, 
    rgba(10,10,15,0.95) 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

/* ── Selection ───────────────────────────────────────────────── */
::selection {
  background: var(--accent);
  color: #fff;
}

/* ── Main Grid Container ─────────────────────────────────────── */
.container-xl {
  display: grid;
  max-width: 1200px;
  margin: 0 auto;
  height: auto;
  grid-template-columns: 0.3fr 1fr 1fr;
  grid-template-rows: auto auto auto auto 1fr auto;
  grid-template-areas:
    "logo    toplist  toplist  toplist"
    "tittle  tittle   tittle   tittle"
    "decs    decs     gif      gif"
    "text1   text1    text1    text1"
    "content content  content  content"
    "bigtoplist bigtoplist bigtoplist bigtoplist";
  grid-gap: 12px;
  color: var(--text-primary);
  font-size: 15px;
  text-align: center;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background-color: transparent;
  text-transform: none;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Shared Card Mixin (via common properties) ───────────────── */
#logo, #toplist, #tittle, #gif, #decs, #text1, #text2, #text3, #text4,
#content, #bigtoplist {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--main-radius);
  padding: var(--main-padding);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

#logo:hover, #toplist:hover, #tittle:hover, #gif:hover, #decs:hover,
#text1:hover, #content:hover, #bigtoplist:hover {
  border-color: rgba(192, 57, 79, 0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 4px 12px rgba(192,57,79,0.12);
}

/* ── Logo Section ────────────────────────────────────────────── */
#logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

#logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#logo:hover::after {
  opacity: 1;
}

#logo img,
#logo .img-fluid {
  max-width: 72px;
  height: auto;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transition: var(--transition);
}

#logo:hover img {
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* ── Top List / Title Bar ────────────────────────────────────── */
#toplist {
  grid-area: toplist;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#toplist::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--gold), var(--accent), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

#toplist h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold-light) 40%, var(--accent-light) 70%, var(--text-primary) 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 6s ease infinite;
}

@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#toplist center {
  display: none;
}

/* ── Tittle (Torrent) Section ────────────────────────────────── */
#tittle {
  grid-area: tittle;
  text-align: left;
  padding: 16px 20px;
}

#tittle .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}

/* ── Video / GIF Section ─────────────────────────────────────── */
#gif {
  grid-area: gif;
  padding: 12px;
}

#gif .alert,
#gif .alert-success,
#gif main {
  background: transparent !important;
  border: none !important;
  padding: 0;
  margin: 0;
  border-radius: var(--main-radius);
  overflow: hidden;
}

#gif video,
#gif .myvids {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* ── Decs (Popular) Section ──────────────────────────────────── */
#decs {
  grid-area: decs;
  word-spacing: normal;
  padding: 16px 20px;
}

/* ── Tags Section ────────────────────────────────────────────── */
#text1 {
  grid-area: text1;
  width: 100%;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

#text2 { grid-area: text2; width: 100%; }
#text3 { grid-area: text3; width: 100%; }
#text4 { grid-area: text4; width: 100%; }

/* ── Content Section ─────────────────────────────────────────── */
#content {
  grid-area: content;
  font-size: 14px;
  padding: 28px 24px;
  position: relative;
  counter-reset: quote-counter;
  overflow: hidden;
}

/* Decorative corner ornaments */
#content::before,
#content::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(192, 57, 79, 0.12);
  pointer-events: none;
}

#content::before {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 8px;
}

#content::after {
  bottom: 12px;
  right: 12px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 8px;
}

/* Decorative gradient line under header */
#content .mybg1 {
  display: block;
  text-align: center;
  padding: 14px 32px;
  border-radius: 8px !important;
  font-size: 16px;
  letter-spacing: 4px;
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, #6b0f20 50%, var(--accent) 100%);
  background-size: 200% 200%;
  animation: gradientFlow 4s ease infinite;
  margin-bottom: 20px;
}

#content .mybg1::before {
  content: '◆';
  margin-right: 12px;
  font-size: 10px;
  opacity: 0.6;
  vertical-align: middle;
}

#content .mybg1::after {
  content: '◆';
  margin-left: 12px;
  font-size: 10px;
  opacity: 0.6;
  vertical-align: middle;
}

#content .mybg1 h1 {
  display: inline;
  font-size: 16px;
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 4px;
}

/* ── Big Toplist Section ─────────────────────────────────────── */
#bigtoplist {
  grid-area: bigtoplist;
  font-size: 13px;
  padding: 16px 20px;
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENT STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── .mybg — Torrent file rows ───────────────────────────────── */
.mybg {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass) !important;
  border-radius: 8px !important;
  color: var(--text-secondary);
  width: 100%;
  padding: 8px 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  transition: var(--transition);
}

.mybg:hover {
  background: rgba(192, 57, 79, 0.08);
  border-color: rgba(192, 57, 79, 0.2) !important;
  transform: translateX(4px);
}

.mybg img {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  filter: brightness(1.5);
}

/* ── .mybg1 — Section headers ────────────────────────────────── */
.mybg1 {
  background: linear-gradient(135deg, var(--accent) 0%, #8b1a2e 100%);
  border: none !important;
  color: #fff;
  width: auto;
  display: inline-block;
  padding: 8px 24px;
  border-radius: 6px !important;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(192,57,79,0.3);
  transition: var(--transition);
}

.mybg1:hover {
  box-shadow: 0 6px 24px rgba(192,57,79,0.45);
  transform: translateY(-1px);
}

.mybg1 h1 {
  font-size: 16px;
  margin: 0;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

/* ── .mydesc — Description items ─────────────────────────────── */
.mydesc {
  font-size: 13px;
  text-align: left;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  line-height: 1.6;
  transition: var(--transition);
}

.mydesc:hover {
  color: var(--text-primary);
  padding-left: 6px;
  border-bottom-color: rgba(192,57,79,0.15);
}

.mydesc:last-child {
  border-bottom: none;
}

/* ── .col — Torrent column blocks ────────────────────────────── */
.col {
  border: none !important;
  word-spacing: normal;
  font-size: 13px;
  padding: 4px 0;
}

/* ── .col-2, .col-11, .col-12 — Bootstrap column overrides ──── */
.col-2 {
  font-size: 12px;
}

.col-11 {
  counter-increment: quote-counter;
  position: relative;
  font-size: 14px;
  line-height: 1.7;
  padding: 14px 18px 14px 52px;
  margin: 6px 0;
  color: var(--text-secondary);
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(192,57,79,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  transition: var(--transition);
  text-align: left;
}

/* Numbered counter badge */
.col-11::before {
  content: counter(quote-counter);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #8b1a2e);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(192,57,79,0.3);
  line-height: 1;
}

.col-11:hover {
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(192,57,79,0.06) 0%, rgba(192,57,79,0.10) 100%);
  border-left-color: var(--accent-light);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.col-11:hover::before {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 2px 12px rgba(192,57,79,0.5);
  transform: translateY(-50%) scale(1.1);
}

/* Alternating subtle tint for readability */
.col-11:nth-child(even) {
  background: linear-gradient(135deg, rgba(255,255,255,0.01) 0%, rgba(212,160,86,0.02) 100%);
  border-left-color: var(--gold);
}

.col-11:nth-child(even)::before {
  background: linear-gradient(135deg, var(--gold), #a07830);
}

.col-11:nth-child(even):hover {
  background: linear-gradient(135deg, rgba(212,160,86,0.06) 0%, rgba(212,160,86,0.10) 100%);
  border-left-color: var(--gold-light);
}

.col-11:nth-child(even):hover::before {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 2px 12px rgba(212,160,86,0.4);
}

.col-12 {
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   LINK & BUTTON STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── Global Links ────────────────────────────────────────────── */
a:link {
  color: var(--accent-light);
  text-decoration: none;
  transition: var(--transition);
}

a:visited {
  color: var(--gold);
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-glow);
}

a:active {
  color: var(--gold-light);
}

/* ── Tag Buttons (Bootstrap override) ────────────────────────── */
.btn {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  transition: var(--transition) !important;
}

.btn-outline-danger {
  color: var(--text-secondary) !important;
  border-color: rgba(255,255,255,0.08) !important;
  background: var(--bg-glass) !important;
  border-radius: 20px !important;
  padding: 5px 14px !important;
  font-size: 12px !important;
  text-transform: lowercase !important;
  letter-spacing: 0.5px !important;
  backdrop-filter: blur(8px) !important;
}

.btn-outline-danger:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent), #8b1a2e) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 16px var(--accent-glow) !important;
  transform: translateY(-2px) !important;
}

.btn-outline-danger:active {
  transform: translateY(0) !important;
}

.btn-sm {
  font-size: 12px !important;
  padding: 5px 14px !important;
}

/* ── Bootstrap Icons in buttons ──────────────────────────────── */
.bi-search::before {
  margin-right: 4px;
  font-size: 10px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   KEYWORD SECTION (override inline styles from index.php)
   ═══════════════════════════════════════════════════════════════ */
.keyword-section {
  background: var(--bg-card) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid var(--border-glass) !important;
  padding: 28px 24px !important;
  border-radius: var(--main-radius) !important;
  box-shadow: var(--card-shadow) !important;
  margin-top: 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.keyword-section h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  text-align: center !important;
  margin-bottom: 20px !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.keyword-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: center !important;
}

.keyword-item {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border-glass) !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  transition: var(--transition) !important;
  backdrop-filter: blur(8px);
}

.keyword-item a {
  text-decoration: none !important;
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  font-family: 'Inter', sans-serif !important;
  transition: var(--transition) !important;
}

.keyword-item:hover {
  background: rgba(192, 57, 79, 0.12) !important;
  border-color: rgba(192, 57, 79, 0.25) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(192,57,79,0.15) !important;
}

.keyword-item:hover a {
  color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════
   BOOTSTRAP OVERRIDES
   ═══════════════════════════════════════════════════════════════ */

/* ── Row ─────────────────────────────────────────────────────── */
.row {
  --bs-gutter-x: 12px;
}

/* ── Alert overrides ─────────────────────────────────────────── */
.alert-success {
  background-color: transparent;
  border: none;
  color: var(--text-primary);
}

/* ── m-1 spacing helper ──────────────────────────────────────── */
.m-1 {
  margin: 3px 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   img-fluid
   ═══════════════════════════════════════════════════════════════ */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤720px)
   ═══════════════════════════════════════════════════════════════ */
@media only screen and (max-width: 720px) {
  body {
    padding: 10px 6px;
  }

  .container-xl {
    grid-gap: 10px;
    font-size: 14px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "logo"
      "toplist"
      "gif"
      "tittle"
      "text1"
      "decs"
      "content"
      "bigtoplist";
  }

  #logo {
    justify-content: center;
  }

  #logo img,
  #logo .img-fluid {
    max-width: 56px;
  }

  #toplist h1 {
    font-size: 1.4rem;
    letter-spacing: 2px;
  }

  #tittle .row {
    grid-template-columns: 1fr;
  }

  .keyword-section {
    padding: 20px 14px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤550px)
   ═══════════════════════════════════════════════════════════════ */
@media only screen and (max-width: 550px) {
  body {
    padding: 8px 4px;
  }

  .container-xl {
    grid-gap: 8px;
    font-size: 13px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "logo"
      "toplist"
      "gif"
      "tittle"
      "text1"
      "decs"
      "content"
      "bigtoplist";
  }

  #toplist h1 {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  #logo img,
  #logo .img-fluid {
    max-width: 48px;
  }

  .btn-outline-danger {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }

  .mybg {
    font-size: 12px;
    padding: 6px 10px;
  }

  .keyword-item {
    padding: 4px 12px !important;
  }

  .keyword-item a {
    font-size: 12px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

/* Staggered card entrance */
#logo      { animation: fadeInUp 0.5s ease-out 0.1s both; }
#toplist   { animation: fadeInUp 0.5s ease-out 0.15s both; }
#tittle    { animation: fadeInUp 0.5s ease-out 0.2s both; }
#gif       { animation: fadeInUp 0.5s ease-out 0.25s both; }
#decs      { animation: fadeInUp 0.5s ease-out 0.3s both; }
#text1     { animation: fadeInUp 0.5s ease-out 0.35s both; }
#content   { animation: fadeInUp 0.5s ease-out 0.4s both; }
#bigtoplist{ animation: fadeInUp 0.5s ease-out 0.45s both; }

/* Pulse glow on accent elements */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 12px var(--accent-glow); }
  50%      { box-shadow: 0 0 24px var(--accent-glow); }
}

#logo img {
  animation: pulseGlow 3s ease-in-out infinite;
}