/* ============================================================
   Deto — Shared Stylesheet
   Used by all pages via <link rel="stylesheet" href="style.css">
   ============================================================ */

/* VARIABLES */
:root {
  --green: #22C55E;
  --green-dark: #16A34A;
  --dark: #111827;
  --gray: #6B7280;
  --light: #F9FAFB;
  --white: #ffffff;
  --border: #E5E7EB;
}

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

/* BODY */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--dark); }

.nav-cta {
  background: var(--dark);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600 !important;
  transition: background 0.2s;
}

.nav-cta:hover { background: #374151 !important; color: white !important; }

/* Auth nav link */
.nav-auth-link {
  color: var(--gray) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}
.nav-auth-link:hover { color: var(--dark) !important; }

/* User dropdown */
.nav-user-wrap { position: relative; }

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  transition: border-color 0.2s;
  user-select: none;
}
.nav-user-btn:hover { border-color: var(--green); }

.nav-user-avatar {
  width: 28px;
  height: 28px;
  background: #DCFCE7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--green-dark);
}

.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 180px;
  overflow: hidden;
  z-index: 200;
}
.nav-user-dropdown.open { display: block; }

.nav-user-dropdown a,
.nav-user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.nav-user-dropdown a:hover,
.nav-user-dropdown button:hover { background: var(--light); }
.nav-user-dropdown button { color: #EF4444; border-top: 1px solid #F3F4F6; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  position: fixed;
  top: 88px;
  left: 0;
  right: 0;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mobile-menu a {
  text-decoration: none;
  color: var(--dark);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
}
.mobile-menu a.nav-cta-mobile {
  color: var(--green);
  font-weight: 700;
}
.mobile-menu.open { display: flex; }

/* BUTTONS (shared across pages) */
.btn-primary {
  background: var(--green);
  color: white;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-secondary {
  color: var(--dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary:hover { color: var(--green); }

.btn-outline {
  border: 2px solid var(--border);
  color: var(--dark);
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

/* MOBILE — shared nav collapse */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
