/* --- Variables System --- */
:root {
  --bg-dark: #0a0b0d;
  --bg-card: #121316;
  --bg-btn: #232428;
  --border-color: rgba(255, 255, 255, 0.08);
  --cyan-neon: #00f2fe;
  --purple-neon: #9d4edd;
  --lime-neon: #ccff00;
  --text-main: #ffffff;
  --text-muted: #e1e6ed;
  --main-neon: var(--cyan-neon);
}

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

body {
  background-color: var(--bg-dark);
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  min-height: 100vh;
  color: var(--text-main);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ------------------ Sidebar Style ------------------ */
.sidebar {
  width: 80px;
  height: 100vh;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.logo {
  padding: 0.75rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--main-neon), var(--purple-neon));
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logo:hover {
  transform: scale(1.08);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  align-items: center;
}

.nav-link {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--bg-btn);
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--main-neon);
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
}

.nav-link.active {
  background-color: transparent;
  color: var(--main-neon);
  border: 1.5px solid var(--main-neon);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

/* Tooltips (Desktop Only) */
@media (min-width: 769px) {
  .nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 65px;
    background: #1f2128;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    border: 1px solid var(--border-color);
  }

  .nav-link:hover::after {
    opacity: 1;
    visibility: visible;
    left: 60px;
  }
}

/* ------------------ Main Content Layout ------------------ */
.main-content {
  margin-left: 80px;
  width: calc(100% - 80px);
  min-height: 100vh;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Top Bar & Search Box */
.top-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 450px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c727f;
  font-size: 0.9rem;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: var(--main-neon);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* login,sign up btns  */
.auth-bottom {
  margin-bottom: 0.5rem;
  display: flex;
  gap: 1rem;
}
.auth-bottom a {
  text-decoration: none;
}
.btn-login {
  font-size: 1.2rem;
  background-color: var(--main-neon);
  color: var(--text-main);
  padding: 3px 11px;
  border-radius: 0.8rem;
  display: inline-block;
}
.btn-signup {
  border-radius: 0.8rem;
  color: var(--text-main);
  font-size: 20px;
  border: 1px solid var(--text-main);
  padding: 3px 11px;
  display: inline-block;
}

/* User Actions & Avatar */
.user-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.avatar-link {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--main-neon), var(--purple-neon));
  box-shadow: 0 0 12px rgba(157, 78, 221, 0.5);
  display: block;
  margin-left: 2rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.avatar-link:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.7);
}

.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--bg-btn);
  object-fit: cover;
}

/* Hero Section */
.hero-card {
  width: 100%;
  min-height: 400px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  flex-grow: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 11, 13, 0.95) 0%,
    rgba(10, 11, 13, 0.65) 50%,
    transparent 100%
  );
  z-index: 2;
}

.hero-text {
  position: absolute;
  inset: 0;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 580px;
  z-index: 3;
}

.tag {
  padding: 6px 14px;
  background: rgba(204, 255, 0, 0.1);
  color: var(--lime-neon);
  border: 1px solid rgba(204, 255, 0, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  width: fit-content;
  margin-bottom: 1rem;
}

.title {
  color: var(--main-neon);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.play-btn {
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--main-neon), var(--purple-neon));
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border-radius: 10px;
  width: fit-content;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  display: inline-block;
}

.play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
  color: #ffffff;
}

/* ------------------ Media Queries (Responsiveness) ------------------ */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .user-actions {
    width: 100%;
  }
  .top-bar {
    margin-top: 80px;
  }
  .logo {
    margin-bottom: 0;
    width: 40px;
    height: 40px;
  }

  .nav-menu {
    flex-direction: row;
    width: auto;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .nav-link {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
  }

  .hero-overlay {
    background: rgba(10, 11, 13, 0.85);
  }

  .hero-text {
    padding: 1.5rem;
  }
}
