/* ═══════════════════════════════════════════════════════════════
   PlayBoxTV Help Portal & PDekoder Video Guide
   Premium Dark Blue Glassmorphism Theme
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* Colors inspired by D:\Projekty\PDekoder\styles.css */
  --bg-dark: #05070f;
  --bg-deep: #080c1b;
  --card-bg: rgba(13, 19, 38, 0.75);
  --card-hover-bg: rgba(18, 26, 50, 0.95);
  --border-light: rgba(255, 255, 255, 0.07);
  
  --accent-color: #0088ff;
  --accent-light: #00c8ff;
  --accent-glow: rgba(0, 136, 255, 0.4);
  --accent-badge-bg: rgba(0, 136, 255, 0.15);
  --accent-border: rgba(0, 136, 255, 0.4);
  --accent-gradient: linear-gradient(135deg, #00c8ff, #0088ff);
  
  --text-primary: #f1f4fa;
  --text-secondary: #90a3c4;
  --text-muted: #5b7194;
  
  --glass-blur: blur(25px) saturate(180%);
  --shadow-main: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ── Reset & Base Styles ─────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 136, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 200, 255, 0.04) 0%, transparent 40%);
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* ── Typography & Accents ────────────────────────────────────── */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ── Custom Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 136, 255, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 136, 255, 0.4);
}

/* ── Layout & Header ─────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 15, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #000;
  box-shadow: 0 0 15px var(--accent-glow);
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-badge {
  font-size: 11px;
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--accent-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-light);
}

/* ── Interactive Elements ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 136, 255, 0.6);
}

/* ── Landing Page (index.html) ────────────────────────────────── */
.container-landing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  flex: 1;
}

.hero-section {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: pulseGlow 2.5s infinite ease-in-out;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-light);
}

.hero-title {
  font-size: 56px;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px auto;
}

/* ── Vertical Videos Page Layout (pdekoder.html) ─────────────── */
.container-videos {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-title-section {
  text-align: center;
  margin-bottom: 20px;
}

.page-title {
  font-size: 38px;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* Vertical tutorial video cards list */
.video-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.video-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-main);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-card:hover {
  border-color: rgba(0, 136, 255, 0.25);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 136, 255, 0.1);
}

.video-card-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  background: var(--accent-gradient);
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.category-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-light);
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: 6px;
}

.video-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.video-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Centered & Smaller Video Player Container */
.video-player-wrapper {
  width: 100%;
  max-width: 640px; /* Forces smaller video */
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  position: relative;
}

.video-card:hover .video-player-wrapper {
  border-color: var(--accent-border);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6), 0 0 15px var(--accent-glow);
}

.video-player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
  background-color: #000;
}

/* ── Footer Section ─────────────────────────────────────────── */
footer {
  background: rgba(5, 7, 15, 0.8);
  border-top: 1px solid var(--border-light);
  padding: 24px 5%;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
}

/* ── Keyframe Animations ──────────────────────────────────────── */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.9;
    box-shadow: 0 0 8px var(--accent-glow);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.6);
  }
}

/* ── Responsive Styling ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
  .page-title {
    font-size: 32px;
  }
  .video-card {
    padding: 20px;
  }
}
