/* ==========================================================================
   SAMAY IS GOAT - Modern Streaming & Download Platform CSS
   Optimized for Mobile-First, Performance, Ad Placements & Animations
   ========================================================================== */

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #14141f;
  --bg-card-hover: #1c1c2b;
  --bg-glass: rgba(20, 20, 31, 0.75);
  --accent-red: #ff0055;
  --accent-red-hover: #ff2e63;
  --accent-gold: #ffb703;
  --accent-cyan: #00d2ff;
  --telegram-blue: #0088cc;
  --text-main: #f8f9fa;
  --text-muted: #a0a0b0;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 0, 85, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(255, 0, 85, 0.35);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #2a2a3d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 20px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--accent-red) 70%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.logo-badge {
  background: linear-gradient(45deg, var(--accent-red), #ff5252);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  -webkit-text-fill-color: initial;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive Ad Container Styles */
.ad-slot {
  width: 100%;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ad-wrapper {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 4px;
}

.ad-placeholder-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Sticky Bottom Ad Container */
.sticky-bottom-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background: rgba(15, 15, 22, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-glow);
  box-shadow: 0 -5px 25px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 15px 12px;
  animation: slideUp 0.5s ease-out;
}

.sticky-ad-close {
  position: absolute;
  top: -12px;
  right: 15px;
  background: var(--accent-red);
  color: #fff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Main Container */
.main-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, rgba(255, 0, 85, 0.15) 0%, rgba(20, 20, 31, 0.9) 60%),
              radial-gradient(circle at top right, rgba(0, 210, 255, 0.15), transparent 70%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 35px 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-main);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 85, 0.05) 0%, transparent 60%);
  pointer-events: none;
  animation: rotateGlow 20s linear infinite;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 0, 85, 0.15);
  color: var(--accent-red);
  border: 1px solid var(--border-glow);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 700px;
}

/* Telegram CTA Bar */
.telegram-bar {
  background: linear-gradient(135deg, #0088cc, #005580);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
  transition: var(--transition);

}

.telegram-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 136, 204, 0.45);
}

.telegram-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telegram-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}

.telegram-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.telegram-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.btn-telegram {
  background: #fff;
  color: var(--telegram-blue);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: pulseGlow 2.5s infinite;
}

.btn-telegram:hover {
  background: #f0f8ff;
  transform: scale(1.05);
}

/* Grid & Cards */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent-red);
  padding-left: 12px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 35px;
}

/* Card Styling */
.episode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.episode-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);

}

.card-poster {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #111;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.episode-card:hover .card-poster img {
  transform: scale(1.08);
}

.badge-hd {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: var(--accent-gold);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-quality {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-red) 0%, #d60045 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 0, 85, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-red-hover) 0%, #e6004c 100%);
  box-shadow: 0 6px 20px rgba(255, 0, 85, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Mirror / Download Options Layout */
.mirror-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 25px;
  margin: 25px 0;
  box-shadow: var(--shadow-main);
}

.mirror-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 0, 85, 0.3);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.link-card-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.link-card-btn:hover {
  background: rgba(255, 0, 85, 0.1);
  border-color: var(--accent-red);
  transform: translateY(-2px);
}

.link-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.icon-terabox { background: rgba(0, 168, 255, 0.2); color: #00a8ff; }
.icon-diskwala { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }
.icon-pixeldrain { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.icon-play { background: rgba(255, 0, 85, 0.2); color: var(--accent-red); }
.icon-cpm { background: rgba(255, 183, 3, 0.2); color: var(--accent-gold); }

/* Embed Video Player Container */
.player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.site-footer {
  background: #07070b;
  border-top: 1px solid var(--border-light);
  padding: 35px 20px 80px; /* Padding bottom for sticky ad */
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 600px;
  line-height: 1.4;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(0, 136, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0); }
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fade {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Mobile Media Queries */
@media (max-width: 768px) {
  .hero-title { font-size: 1.6rem; }
  .telegram-bar { flex-direction: column; text-align: center; }
  .telegram-info { flex-direction: column; }
  .nav-menu { display: none; }
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0d0d14;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
  }
  .mobile-menu-btn { display: block; }
  .episodes-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
}
