/* ============================================
   DREK DISCORD BOT LANDING PAGE
   Design: Cyberpunk Minimalism
   Colors: Deep black (#0a0e27), Cyan (#00d9ff), Magenta (#ff006e)
   Typography: IBM Plex Mono (headers), Inter (body)
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Changa:wght@200..800&display=swap");


:root {
  --primary-color: #d8d8d8;
  --bg-color: #02030c;
  --primary-bg: linear-gradient(135deg, var(--bg-color) 0%, #121317 100%);
  --secondary-color: #6a0c0c;
  /* --primary-font: "Inter", sans-serif; */
  --primary-font: "Changa", sans-serif;

  /* surfaces & accents shared by the dashboard */
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #00d9ff;
  --accent-2: #ff006e;
  --brand-red: #c65050;
  --danger: #ff4d3d;
  --ok: #3ddc84;
  --warn: #ffb020;
  --muted: #8b909a;
  --radius: 12px;

}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--primary-font);
  /* background-color: #0a0e27; */
  background: var(--primary-bg);
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: clip; /* clip, not hidden: hidden turns body into a scroll box and breaks position: sticky */
  margin: 0;
}



h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--primary-font);
  font-weight: 700;
  letter-spacing: 0.02em;
}

a {
  color: #00d9ff;
  text-decoration: none;
  transition: color 0.2s ease-out;
}

a:hover:not(.btn, .lp-btn, .abutton) {
  color: #ff006e;
}

/* nav */

/* Container adjustments to hold the wrapper layout */
.nav-right {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.user-profile {
  text-align: center;
}

.user-info {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.user-avatar {
  height: 30px; 
  width: 30px; 
  border-radius: 50%;
}


.loading-state {
  display: flex;
  align-items: center;
  height: 30vh;
  justify-content: center;
}

.loading-state > img {
  block-size: 32px;
}

.loading-spin {
  animation: spin 1s linear infinite
}

@keyframes spin {
  from {
    transform: rotate(0);
  } to {
    transform: rotate(360deg);
  }
}

/* Hamburger button hidden by default on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle .bar {
  height: 2px;
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex; 
  }

  .nav-right {
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(0, 2, 13, 0.94) 0%, rgba(30, 31, 37, 0.8) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    padding: 2rem;
    gap: 2rem;
    align-items: flex-start;
  }

  .nav-right.active {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .user-profile {
    align-items: flex-start;
    text-align: left;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
  }
}

/* navend */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(0, 2, 13, 0.8) 0%, rgba(30, 31, 37, 0.8) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
  padding: 0;
}

/* fixed 72px bar (64px on phones), same as the DREK Temple Joomla header */
.nav-container {
  max-width: 1200px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-container .nav-menu {
  margin: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: block;
  line-height: 0;
  transition: filter 0.2s ease-out;
}

.logo-link img {
  display: block;
  height: 42px;
  width: auto;
}

.logo-link:hover {
  filter: drop-shadow(0 0 10px rgba(198, 80, 80, 0.45));
}

@media (max-width: 768px) {
  .nav-container {
    min-height: 64px;
  }

  .nav-logo .logo-link img {
    height: 36px;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  color: #e0e0e0;
}

.nav-link.active, .footer-section a.active {
  background: linear-gradient(90deg, #ff006e, #00d9ff);
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 5px #ff00804d,
    0 0 15px #ff007f,
    0 0 30px #ff007f;
}


.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3f76ca, #e54d4d);
  transition: width 0.3s ease-out;
}

.nav-link:hover::after {
  width: 100%;
}

.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-family: var(--primary-font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease-out;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #00d9ff 0%, #00a8cc 100%);
  color: #0a0e27;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #00d9ff;
  border: 2px solid #00d9ff;
  box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(0, 217, 255, 0.1);
  box-shadow:
    inset 0 0 20px rgba(0, 217, 255, 0.3),
    0 0 20px rgba(0, 217, 255, 0.2);
}

.btn-danger {
  background: transparent;
  color: #ff1500;
  border: 2px solid #ff2600;
  box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.1);
}

.btn-danger:hover {
  background: rgba(255, 21, 0, 0.1);
  box-shadow:
    inset 0 0 20px rgba(255, 42, 0, 0.3),
    0 0 20px rgba(0, 217, 255, 0.2);
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

.btn-small {
  padding: 5px;
}

.section-divider {
  height: 100px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 217, 255, 0.1) 50%,
    transparent 100%
  );
  position: relative;
  margin: 4rem 0;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 217, 255, 0.5),
    transparent
  );
}

.divider-reverse {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 0, 110, 0.1) 50%,
    transparent 100%
  );
}

.divider-reverse::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 0, 110, 0.5),
    transparent
  );
}

.search-box {
  border-radius: 8px;
  border: 1px solid #646464;
  background: linear-gradient(135deg, #121317 0%, #212227 100%);
  height: 28px;
  transition: all 200ms;
  max-width: 1000px;
  padding-left: 10px;
  min-width: 300px;
  color: white;
  font-family: var(--primary-font);
}
.search-box:hover{
  filter: brightness(1.2);
}
.search-box::placeholder {
  color: #646464;
  transition: all 200ms;
}
.search-box:focus {
  outline: none;

  box-shadow:
    0 0 5px #30178d4d,
    0 0 10px #341122,
    0 0 15px #218578;
}





.stats {
  position: relative;
  padding: 4rem 2rem;
  background: rgba(0, 217, 255, 0.03);
  border-top: 1px solid rgba(0, 217, 255, 0.1);
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-family: "IBM Plex Mono", monospace;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d9ff 0%, #ff006e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #808080;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}


.cta {
  position: relative;
  padding: 6rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.1) 0%,
    rgba(255, 0, 110, 0.05) 100%
  );
  border-top: 1px solid rgba(0, 217, 255, 0.2);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: #a0a0a0;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.cta-footnote {
  font-size: 0.9rem;
  color: #606060;
  margin-top: 1.5rem;
}
.abutton {
    font-size: 0.8em;
    padding: 10px;
    color: white;
    background-color: #c65050;
    transition: 200ms;
    border-radius: 8px;
}

.abutton:hover {
  filter: brightness(1.1);
  color: white;
  
}
.footer {
  text-align: center;
  margin-top: 50px;
}

.footer * {
  padding: 0;
}
.footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(0, 217, 255, 0.1);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-logo img {
  height: 80px;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-section p {
  color: #808080;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: #a0a0a0;
  transition: color 0.2s ease-out;
}

.footer-section ul li a:hover {
  color: #00d9ff;
  text-shadow: none;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 217, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #606060;
  font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}


@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-visual {
    display: none;
  }

  .nav-menu {
    gap: 1.5rem;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .commands-grid {
    grid-template-columns: 1fr;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem 1rem 2rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }



  .nav-menu {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

dialog {
  margin: auto;
  border: none;

  background-color: #012228d1;
  backdrop-filter: blur(0.9);

  border: 2px ridge #ff006e;

  color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 300px;
  min-height: 250px;
  font-size: 1.2em;

  transition:
    opacity 0.3s ease-out,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    display 0.3s allow-discrete;

  opacity: 0;
  transform: scale(0.3);
}

dialog[open] {
  opacity: 1;
  transform: scale(1);

  @starting-style {
    opacity: 0;
    transform: scale(0.7);
  }
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition:
    background 0.3s ease-out,
    backdrop-filter 0.3s ease-out,
    display 0.3s allow-discrete;
}

dialog[open]::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);

  @starting-style {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
}

.popupCloseBtn {
  border: 1px solid transparent;
  border-radius: 10px;
  transition: 200ms;
  padding: 0;
  width: 35px;
  height: 35px;

  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.popupCloseBtn:hover {
  border: 1px solid #373737;
  backdrop-filter: brightness(1.05);
}

.popupCloseBtn:active {
  backdrop-filter: brightness(0.8);
}


.table {
  border: 1px ridge rgb(255, 255, 255);
  border-radius: 8px;
  padding: 5px;
  border-collapse: collapse;
  table-layout: fixed;
}
.table th {
  font-weight: 600;
  font-size: 1.2em;
}
.table th, .table td {
  border: 1px ridge rgb(255, 255, 255);
  padding: 10px;
  overflow-wrap: break-word;
}


details summary {
  cursor: pointer;
  user-select: none;
}

@property --dropdown-height {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

details .dropdown-content {
  overflow: hidden;
  height: 0px;
  transition: height 0.4s ease-out;
}

details[open] .dropdown-content {
  height: auto;
}


label {
  padding-inline: 5px;
  user-select: none;
}


@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  .pc {
      display: none;
  }
  .table {
    font-size: 0.8em;
    max-width: 320px !important;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .mob {
    display: none;
  }
}

/* ============================================
   SHARED UI BITS (dashboard & friends)
   ============================================ */

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.btn:focus-visible,
.abutton:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.abutton {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.abutton-ghost {
  background: transparent;
  border: 1px solid var(--brand-red);
  color: #ffb4b4;
}

.abutton-ghost:hover {
  background: rgba(198, 80, 80, 0.15);
  color: white;
}

.logout-form { margin: 0; }

.logout-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.2s ease-out;
}

.logout-link:hover { color: var(--accent-2); }

.notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 217, 255, 0.25);
  background: rgba(0, 217, 255, 0.06);
  text-align: left;
}

.notice-warn {
  border-color: rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.08);
  color: #ffd27a;
}

.input {
  font-family: var(--primary-font);
  font-size: 0.95rem;
  color: #e8e8e8;
  background: #14151b;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  min-width: 0;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:hover:not(:disabled) { border-color: rgba(0, 217, 255, 0.45); }

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15);
}

.input:disabled { opacity: 0.55; cursor: not-allowed; }

.input option,
.input optgroup { background: #14151b; color: #e8e8e8; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
}

code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.05em 0.35em;
}
