/* ═══════════════════════════════════════════════════════
   AI Dream Studio — Common Styles
   Shared header / footer / base reset for all pages.
   ═══════════════════════════════════════════════════════ */

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
}

a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Site Header ─── */
#site-header {
  background: #161b22;
  border-bottom: 1px solid #30363d;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 52px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#site-header .brand {
  font-size: 17px;
  font-weight: 700;
  color: #f0f6fc;
  text-decoration: none;
  white-space: nowrap;
}
#site-header .brand:hover { text-decoration: none; color: #fff; }
#site-header .brand span { color: #58a6ff; }

#site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

#site-header .nav-links a {
  color: #8b949e;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
#site-header .nav-links a:hover {
  color: #c9d1d9;
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

#site-header .nav-links a.btn-nav {
  background: #238636;
  color: #fff;
  font-weight: 600;
  margin-left: 8px;
  padding: 6px 14px;
}
#site-header .nav-links a.btn-nav:hover { background: #2ea043; }

/* Dropdown for logged-in user */
#site-header .user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#site-header .user-menu .user-trigger {
  color: #c9d1d9;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  background: none;
  border: 1px solid #30363d;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
}
#site-header .user-menu .user-trigger:hover { background: #21262d; }

#site-header .user-menu .dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  min-width: 160px;
  padding: 4px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
#site-header .user-menu.open .dropdown { display: block; }

#site-header .user-menu .dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: #c9d1d9;
  text-decoration: none;
  white-space: nowrap;
}
#site-header .user-menu .dropdown a:hover { background: #21262d; text-decoration: none; }
#site-header .user-menu .dropdown .divider {
  height: 1px;
  background: #30363d;
  margin: 4px 0;
}
#site-header .user-menu .dropdown .logout {
  color: #f85149;
}

/* ─── Site Footer ─── */
#site-footer {
  background: #161b22;
  border-top: 1px solid #30363d;
  text-align: center;
  padding: 28px 24px;
  margin-top: 60px;
}

#site-footer .footer-links {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

#site-footer .footer-links a {
  color: #8b949e;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s;
}
#site-footer .footer-links a:hover { color: #c9d1d9; text-decoration: none; }

#site-footer .copyright {
  color: #555;
  font-size: 12px;
}

/* ─── Cookie Banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #161b22;
  border-top: 1px solid #30363d;
  padding: 14px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  z-index: 9999;
}
.cookie-banner button {
  background: #238636;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-banner button:hover { background: #2ea043; }
