/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.6;
}

p {
  margin-bottom: 20px;
}

a {
  text-decoration: none;
}

/* Header */
header {
  height: 50px;
  width: 100%;
  background: black;
  color: white;
  top: 0;
  position: fixed;
  display: flex;
  justify-content: space-between;
  z-index: 1000;
}

.logo img {
  height: 50px;
  width: 50px;
  border: none;
}

.header-buttons {
  display: flex;
  gap: 5px;
}

.search, .hamburger {
  height: 50px;
  width: 50px;
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
}

.hamburger:hover,
.search:hover {
  border: 1px dotted white;
}

/* Search Overlay */
#searchOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s linear;
  z-index: 9999;
}

#searchOverlay.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

search form {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.search-input {
  width: 250px;
  height: 40px;
  border-radius: 10px 0 0 10px;
  padding: 10px;
  border: 0.5px solid black;
  font-size: 16px;
  outline: none;
}

.search-input:focus {
  border: 0.5px solid blue;
}

.search-btn {
  width: 40px;
  height: 40px;
  border-radius: 0 10px 10px 0;
  background: blue;
  color: white;
  border: none;
  cursor: pointer;
}

.back-button {
  background: transparent;
  color: white;
  height: 40px;
  width: 40px;
  float: right;
  border: none;
  margin-top: 20px;
  cursor: pointer;
}

/* Hamburger Menu for mobile devices*/
#menu {
  background: whitesmoke;
  width: 310px;
  height: calc(100vh - 50px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  margin-top: 50px;
  position: fixed;
  top: 0;
  right: -310px;
  transition: right 0.3s linear;
  z-index: 900;
  
}

#menu.open {
  right: 0;
}

#menu ul {
  padding-bottom: 60px;
}

nav a {
  text-decoration: none;
  font-size: 20px;
  display: flex;
  padding: 15px;
  color: black;
  border-bottom: 0.5px dotted black;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

nav a.active {
  font-weight: bolder;
  color: blue;
  text-decoration: none;
  background: lightblue;
  border-right: 6px solid blue;
}

nav a:hover {
  background: rgba(0, 0, 0, 0.2);
}

.nav-bottom {
  display: flex;
  height: 50px;
  width: 350px;
  background: #808080;
  position: sticky;
  bottom: 0;
  border-top: 0.5px solid black;
  z-index: 991;
}

/* close btn below menu */
.close-menu {
  height: 50px;
  width: 50px;
  background: #000000;
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.active {
  fill: yellow;
  stroke: black;
  stroke-width: 2px;
}

ul li {
  list-style: none;
}

main {
  margin: 80px 10px 0;
}

footer {
  background: black;
  color: white;
  font-size: 16px;
  text-align: center;
  position: relative;
  bottom: 0;
}

footer a {
  color: white;
}

svg.feather {
  stroke-width: 1px;
}

figure img {
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  background: grey;
}

figcaption {
  font-weight: bold;
}

#clock {
  font-size: 1rem;
  font-weight: 1000;
  padding: 5px 10px;
  border-radius: 15px;
  border: 0.5px solid black;
  text-align: center;
  background: cyan;
  color: black;
}

.see {
  height: 40px;
  width: 100px;
  color: white;
  background: linear-gradient(to right, dodgerblue 0%, deepskyblue 100%);
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

.more-videos {
  height: 40px;
  width: 300px;
  color: white;
  background: royalblue;
  border-radius: 20px;
  border: 0.5px solid black;
  font-size: 20px;
  cursor: pointer;
}

.back {
  height: 50px;
  width: 50px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
}

/* Featured Playlist Scroll */
.scroll-playlist {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 10px;
  scroll-behavior: smooth;
  white-space: nowrap;
}

.scroll-playlist::-webkit-scrollbar {
  height: 5px;
}

.scroll-playlist::-webkit-scrollbar-thumb {
  background: orange;
  border-radius: 10px;
}

.playlist-card {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 10px;
  background: cyan;
  scroll-snap-align: start;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.playlist-thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: grey;
}

.playlist-info {
  padding: 10px;
}

.playlist-title {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin: 5px 0;
}

.btn.btn-secondary {
  display: inline-block;
  padding: 6px 12px;
  background: red;
  color: white;
  border-radius: 5px;
  font-size: 0.9rem;
  text-align: center;
}

.settings {
  display: flex;
  height: 40px;
  width: 40px;
  border: 0.5px solid black;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  color: black
}

.socials img{
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*Whats new container*/
.whats-new-container {
  position: relative;
  height: 100px;
  width: 100%;
  cursor: pointer;
}

.whats-new-container img {
  height: 100px;
  width: 100%;
  object-fit: cover;
  z-index: 1;
}

.whats-new-container h4 {
  position: absolute;
  bottom: 8px;
  left: 20px;
  color: white;
}

.whats-new-container:hover {
  border: 1px dotted white;
}

.date-updated {
  position: absolute;
  top: 5px;
  left: 5px;
  color: white;
  background: black;
}

/* Duration tag for music and podcasts */
.duration {
  position: absolute;
  top: 0;
  left: 0;
  color: white;
  padding: 2px;
  background: rgba(0, 0, 0, 0.5);
}

pre {
  white-space: pre-wrap; /* Allows text to wrap when it's too long */
  word-wrap: break-word; /* For older browsers like IE */
}

