@charset "utf-8";

/* ---------------------------
   CSS VARIABLES (THEME)
---------------------------- */
:root {
  --primary: #ff5722;
  --dark: #121212;
  --light: #ffffff;
  --gray: #f2f2f2;
  --text: #1a1a1a;
  --bg-dark: #0f0f0f;
  --bg-card: #1a1a1a;
  --accent: #ff3b3b;
  --text-main: #ffffff;
  --text-muted: #b3b3b3;
  --radius: 14px;
  --transition: 0.25s ease;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  --font-main: "Inter", "Helvetica Neue", sans-serif;
}

/* Dark mode override */
body.dark {
  --light: #121212;
  --dark: #ffffff;
  --gray: #1e1e1e;
  --text: #f5f5f5;
}

/* ---------------------------
   GLOBAL STYLES
---------------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--gray);
  color: var(--text);
  line-height: 1.6;
}

/* ---------------------------
   HEADER
---------------------------- */
header {
  position: sticky;
  top: 0;
  background: var(--dark);
  color: var(--light);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1000;
}

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

.logo img {
  height: 42px;
}

/* ---------------------------
   SEARCH
---------------------------- */
.search-box {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 8px 34px 8px 12px;
  border-radius: 20px;
  border: none;
}

.search-box i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

/* ---------------------------
   HEADER ACTIONS
---------------------------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-actions button,
.header-actions a {
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  position: relative;
}

.badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 50%;
}

/* ---------------------------
   NAV
---------------------------- */
nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .3s;
}

nav a:hover::after {
  width: 100%;
}

/* ---------------------------
   HERO
---------------------------- */
.hero {
  height: 55vh;
  background:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url("https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4")
    center/cover no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero h2 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

/* ---------------------------
   PRODUCTS / SHOWS
---------------------------- */
.products {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card {
  background: var(--light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
  transition: transform .2s;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-card h3 {
  margin: 14px;
}

.price {
  margin: 0 14px 20px;
  color: var(--primary);
  font-weight: bold;
}

/* ---------------------------
   BACK TO TOP
---------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 14px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 1.2rem;
  display: none;
  cursor: pointer;
}

/* ---------------------------
   MOBILE MENU
---------------------------- */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 20px;
    display: none;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .search-box {
    display: none;
  }
}


/* =========================
   PAGE CONTAINER
   ========================= */
.video-browser {
  background: var(--bg-dark);
  color: var(--text-main);
  padding: 4rem 2rem;
  font-family: var(--font-main);
}

/* =========================
   HEADER
   ========================= */
.video-browser h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

/* =========================
   FILTER BUTTONS
   ========================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filters button {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--text-main);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.filters button:hover,
.filters button.active {
  background: var(--accent);
  color: #000;
}

/* =========================
   VIDEO GRID
   ========================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

/* =========================
   VIDEO CARD
   ========================= */
.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.video-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.8);
}

/* =========================
   VIDEO MEDIA
   ========================= */
.video-card iframe,
.video-card video,
.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

/* =========================
   VIDEO INFO
   ========================= */
.video-info {
  padding: 1rem 1.1rem 1.3rem;
}

.video-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.video-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =========================
   TAGS / LABELS
   ========================= */
.video-tags {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.video-tags span {
  background: rgba(255, 59, 59, 0.15);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

/* =========================
   MOBILE OPTIMIZATION
   ========================= */
@media (max-width: 600px) {
  .video-browser {
    padding: 3rem 1.2rem;
  }

  .filters {
    justify-content: center;
  }

  .filters button {
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
  }
}

/* =========================
   LARGE SCREENS
   ========================= */
@media (min-width: 1400px) {
  .video-browser {
    max-width: 1400px;
    margin: 0 auto;
  }
}
