/* Global */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

:root {
  --sidebar-width: 90px;
  --topbar-height: 60px;
  --content-max-width: 1700px;
  --content-gutter: clamp(12px, 1.4vw, 28px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: linear-gradient(to bottom right, #1a1a1a, #2a2a40);
  color: #ccc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: #ffce54;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffd700;
}

.container {
  min-height: 80vh;
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--content-gutter);
}

.container h1 {
  text-align: center;
  margin: 2rem 0;
  color: #fff;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(to bottom, #000000, #190909);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
  z-index: 10;
  box-shadow: 2px 0 10px rgba(12, 12, 12, 0.4);
}

.logo img {
  width: 75px;
  height: auto;
  margin-bottom: 2rem;
}

.side-nav a {
  margin: 20px 0;
  display: block;
}

.side-nav img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.side-nav img:hover {
  transform: scale(1.1);
  filter: brightness(1.5);
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background: linear-gradient(to left, #1f0000, #300606);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--content-gutter);
  z-index: 9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.search-box {
  flex-grow: 1;
  flex: 1;
  margin-right: auto;
  display: flex;
  max-width: 300px;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 0.5rem;
  background: #060404;
  border: none;
  color: #fff;
  border-radius: 5px;
}

.profile-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffd700;
}

.avatar:hover {
  filter: brightness(1.4);
  cursor: pointer;
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--topbar-height);
  padding: 2rem var(--content-gutter);
  width: calc(100% - var(--sidebar-width));
  background: linear-gradient(to bottom, #000000, #190909);
}

/* Footer */
footer {
  background: #080202;
  color: #aaa;
  padding: 1rem var(--content-gutter);
  text-align: center;
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  border-top: 1px solid #2f2f44;
}

.footer-right {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 0.5rem;
}

/* Scrollbar */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: #1a1a1a;
}

body::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Drawer */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 900;
}

.sidebar-overlay.active {
  display: block;
}

/* Age Modal UI */
#ageModal {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.age-check {
  background: #1c1c1c;
  color: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.age-check h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #ff4c4c;
  font-weight: 600;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.btn-group button {
  padding: 10px 24px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  background-color: #ff4c4c;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-group button:hover {
  background-color: #ff2a2a;
  transform: scale(1.05);
}

.btn-group button:focus {
  outline: 2px solid #fff;
}

.type-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.type-badge.basic {
  background: #e8f5e9;
  color: #1b5e20;
}

.type-badge.premium {
  background: #fff3e0;
  color: #e65100;
}

/* Large Monitors */
@media (min-width: 1900px) {
  :root {
    --content-max-width: 2000px;
    --content-gutter: clamp(16px, 1.5vw, 36px);
  }
}

@media (min-width: 2500px) {
  :root {
    --content-max-width: 2300px;
  }
}

/* Mobile / Tablet */
@media (max-width: 768px) {
  .sidebar {
    width: 70vw;
    max-width: 100px;
    min-width: 80px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, #000000, #190909);
    padding-top: 1rem;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .topbar {
    left: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    gap: 10px;
  }

  .main-content {
    margin-left: 0;
    margin-top: var(--topbar-height);
    width: 100%;
    padding-inline: 1rem;
  }

  footer {
    margin-left: 0;
    width: 100%;
    padding-inline: 1rem;
  }

  .header-actions {
    margin-left: 0;
  }

  .search-box {
    flex-grow: 1;
    margin: 0;
  }

  .search-box input {
    width: 100%;
    font-size: 14px;
    padding: 8px;
  }

  .menu-toggle {
    display: block;
    flex-shrink: 0;
  }

  .container {
    padding-inline: 0;
  }

  .footer-right {
    flex-direction: column;
    gap: 10px;
  }
}
