
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #141414;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #fff;
}
a {
  color: #e5e5e5;
  text-decoration: none;
}
ul {
  list-style: none;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #141414;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  height: 40px;
}
nav ul {
  display: flex;
  gap: 20px;
}
nav a {
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s;
}
nav a:hover {
  color: #b3b3b3;
}

/* Language Selector */
#language {
  position: absolute;
  top: 25px;
  right: 40px;
  padding: 5px;
  background: #000;
  color: #fff;
  border: 1px solid #333;
  border-radius: 5px;
}

/* Slideshow */
.slideshow {
  height: 70vh;
  background-color: #111;
  display: flex;
  overflow: hidden;
  position: relative;
}
.slide {
  flex: 0 0 100%;
  transition: all 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

/* Category Section */
section.category {
  padding: 40px;
}
h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #e5e5e5;
}
.content-row {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 20px;
}
.content-card {
  position: relative;
  min-width: 200px;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s;
}
.content-card:hover {
  transform: scale(1.1);
  z-index: 10;
}
.content-card::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.8), transparent);
  color: #fff;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #000;
  color: #737373;
  font-size: 13px;
}

.content-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
}
.content-card:hover video {
  display: block;
  z-index: 10;
}
.content-card:hover img {
  display: none;
}

:root {
  --bg-color: #0d0d1a;
  --text-color: #e0e6f8;
  --primary-color: #0db7ed;
  --card-bg: #121b2f;
}

[data-theme="light"] {
  --bg-color: #f5f5f5;
  --text-color: #121212;
  --primary-color: #0077cc;
  --card-bg: #fff;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Use var(--card-bg) for backgrounds of cards, nav, etc. */
.content-card {
  background-color: var(--card-bg);
}

.content-row {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
}

.content-item {
  flex: 0 0 auto;
  width: 180px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.content-item:hover {
  transform: scale(1.05);
}

.content-item img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
}

.content-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
  color: #fff;
  padding: 0.5rem;
  border-radius: 0 0 8px 8px;
}

.content-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
  scroll-behavior: smooth;
}

.content-card {
  width: 200px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.content-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.preview-video {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  z-index: 10;
}
