/* Base layout reset and typography */
body {
  font-family: sans-serif;
  margin: 0;
  padding-top: 60px; /* Prevents nav from overlapping content */
  background-color: #f5f5f5;
}

/* Main content styling */
main {
  text-align: center;
  padding: 20px;
}

/* Navigation bar container */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  padding: 10px 20px;
  display: flex;
  gap: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* Navigation links */
.top-nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* Hover effect */
.top-nav a:hover {
  text-decoration: underline;
}

/* YouTube Embed Box */
.youtube-box {
  margin: 40px auto;
  padding: 30px 20px;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  background-color: #ffffff;
  color: #222;
}

.youtube-embed-wrapper {
  background-color: white;
  padding: 12px 16px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Creator Cards */
.creator-card {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  max-width: 400px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.creator-card img.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.creator-card h3 {
  margin: 0 0 6px;
}

.subscriber-count {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
}

.video-frame iframe {
  width: 100%;
  height: 215px;
  border-radius: 8px;
}

@media (max-width: 500px) {
  .video-frame iframe {
    height: 200px;
  }
}

.creator-page {
  text-align: center;
  padding: 40px 20px;
}

.creator-page .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
}
/* === Dark Mode Styles === */
body.dark {
  background-color: #121212;
  color: #f0f0f0;
}

body.dark .top-nav {
  background-color: #1e1e1e;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
}

body.dark .creator-card,
body.dark .creator-box,
body.dark .youtube-box {
  background: #1f1f1f;
  border-color: #333;
  color: #f0f0f0;
}

body.dark a {
  color: #88c0ff;
}

/* === Dark Mode Toggle Switch === */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  margin-left: auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #4cd964;
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
}
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: #222;
  color: #eee;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  z-index: 2000;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: sans-serif;
}

.cookie-consent p {
  margin: 0;
  flex-grow: 1;
}

.cookie-consent a {
  color: #4caf50;
  text-decoration: underline;
}

.cookie-consent button {
  background: #4caf50;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cookie-consent button#denyCookies {
  background: #f44336;
}

.cookie-consent button:hover {
  opacity: 0.9;
}
footer {
  text-align: center;
  padding: 20px;
  background: #f0f0f0;
  margin-top: 40px;
  font-size: 0.9em;
  color: #555;
}

footer a {
  color: #007bff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
