/* =============================================================
   shared.css — Bobres IPTV
   Global styles shared across all pages
   ============================================================= */

/* ── Spinner overlay ── */
.spinner {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s ease, visibility .25s ease;
}
body.loaded .spinner {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes hideSpinnerFallback {
  to { opacity: 0; visibility: hidden; }
}
.spinner.js-fallback {
  animation: hideSpinnerFallback .001s ease 3s forwards;
}

/* ── Inner-page header banner ── */
header.page-header { padding: 48px 0; background: #000; color: #fff; }
header.page-header h1 { margin: 0; font-size: 2rem; }

/* ── About page ── */
.icon-box figure img { height: 48px; width: 48px; object-fit: contain; }
.member-box .image   { width: 100%; height: auto; border-radius: 12px; }
.category-image img  { width: 100%; height: auto; border-radius: 12px; }

/* ── Blog page ── */
.news-box figure img       { width: 100%; height: auto; border-radius: 12px; }
.news-box .content.overlap { padding-top: 12px; }
.sidebar .badge            { margin: 4px 6px 0 0; }

/* ── Contact page – social links ── */
.hero { display: flex; align-items: center; flex-direction: column; justify-content: center; }
.social-links { display: flex; }
.social-links a {
  width: 80px; height: 80px; text-align: center; text-decoration: none;
  color: #000; box-shadow: 0 0 20px 10px rgba(0,0,0,.05);
  margin: 0 30px; border-radius: 50%; position: relative;
  overflow: hidden; transition: transform 0.5s;
}
.social-links a .fab { font-size: 30px; line-height: 80px; position: relative; z-index: 10; transition: color 0.5s; }
.social-links a::after {
  content: ''; width: 100%; height: 100%; top: -90px; left: 0;
  background: linear-gradient(-45deg, #ed1c94, #ffec17);
  position: absolute; transition: 0.5s;
}
.social-links a:hover::after { top: 0; }
.social-links a:hover .fab  { color: #fff; }
.social-links a:hover       { transform: translateY(-10px); }

/* ── Reseller – video modal ── */
#play-video {
  border: 4px solid white; border-radius: 50%; padding: 6px 11px;
  background: white; font-size: 24px; color: white;
  height: 56px; width: 56px; display: inline-block;
  vertical-align: middle; transition: all 0.3s ease; line-height: 1.5; cursor: pointer;
}
#play-video:hover { transform: scale(1.05); background-color: #ae2f3b; color: #fff; }
#play-video i     { transition: none; line-height: 0; }
.youtube-video .modal-dialog {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  margin: auto; width: 100%; padding: 0 15px;
  height: 100%; max-width: 1000px !important;
  display: flex; flex-direction: column; justify-content: center;
}
#video-container { position: relative; padding-bottom: 50%; padding-top: 30px; height: 0; overflow: hidden; }
iframe#youtubevideo { position: absolute; top: 0; left: 0; height: 100%; width: 100%; }
.youtube-video .modal-footer  { border: none; text-align: center; display: block; padding: 0; }
.youtube-video .modal-content { background: none !important; border: none; }
.modal-backdrop { z-index: 1 !important; }

/* ── Product-details ── */
.active_now:hover { background: #ff9b00 !important; }
.nav { flex-wrap: inherit; }
li .active {
  border-radius: 980px !important; letter-spacing: -.022em;
  font-size: 14px; line-height: 1.328591; color: white !important;
  min-width: 26px; white-space: nowrap; text-align: center;
  background: #211f1f !important; font-weight: 700; cursor: pointer;
}
.modal-backdrop.show { opacity: 0; z-index: 1; }
#blur-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: black; opacity: 0.9; pointer-events: none;
}

/* ── Home – card columns ── */
.card-columns .card {
  position: relative; transition: background-color 0.1s ease;
  box-sizing: border-box; flex-grow: 1; padding: 24px;
  border-radius: 8px; background-color: rgb(37,42,49); color: white !important;
}

/* ── Channels / Series – datatable ── */
#dtHorizontalExample th, #dtHorizontalExample td { white-space: nowrap; }
table.dataTable thead [class*="sorting"]:after,
table.dataTable thead [class*="sorting"]:before { bottom: .5em; }

/* ── FAQ page ── */
.faq-item { border-bottom: 1px solid #e5e5e5; padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+ '; color: #e90101; font-weight: 700; }
details[open] .faq-item summary::before { content: '− '; }
.faq-item p { margin: 12px 0 0; color: #555; line-height: 1.7; }

/* ── Reviews page ── */
.review-card {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07); margin-bottom: 24px;
}
.review-card .stars    { color: #f5a623; font-size: 1.1rem; margin-bottom: 8px; }
.review-card .reviewer { font-weight: 600; margin-bottom: 4px; }
.review-card .platform { font-size: 0.8rem; color: #888; }
.review-card p         { color: #333; line-height: 1.6; margin: 0; }

@media (max-width: 991px) { main.page-main { margin-top: 24px !important; } }
