/*
Theme Name: My AI Notes
Author: You
Version: 1.0
*/

/* ========================================
   01. DESIGN TOKENS & GLOBAL RESETS
   ======================================== */

:root {
  --bg: #08111a;
  --bg-soft: #0d1824;
  --panel: #101d2b;
  --panel-2: #132436;
  --text: #eaf4ff;
  --muted: #93a9bf;
  --accent: #4df0a8;
  --accent-2: #6bd3ff;
  --border: rgba(255,255,255,.08);
  --shadow: 0 20px 45px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(107,211,255,.12), transparent 30%),
    linear-gradient(180deg, #050b11 0%, #08111a 100%);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   02. BASE ELEMENTS & WRAPPERS
   ======================================== */

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.page-shell {
  padding: 3rem 0 4rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* ========================================
   03. HEADER, BRANDING & PRIMARY NAVIGATION
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(14px);
  background: rgba(5,11,17,.78);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: visible !important;
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: visible !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-text {
  color: var(--text);
  text-transform: lowercase;
}

.brand-mark {
  color: var(--accent);
  font-family: Consolas, Monaco, monospace;
  font-size: 1.2rem;
  text-shadow: 0 0 6px rgba(77,240,168,0.3);
}

.brand-ai {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: .95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

/* ========================================
   04. SHARED PANELS, CARDS & FOOTER
   ======================================== */

.hero-simple,
.card,
.content-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-simple {
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.hero-simple h1,
.content-panel h2,
.card h2,
.card h3 {
  margin-top: 0;
  letter-spacing: -.03em;
}

.hero-simple p,
.content-panel p,
.card p,
.site-footer p {
  color: var(--muted);
}

.card {
  padding: 1.15rem;
  transition: transform .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(107,211,255,.22);
}

.content-panel {
  padding: 1.4rem;
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 0 2.4rem;
  margin-top: 2rem;
}

.footer-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

/* ========================================
   05. DOCS LAYOUT, SIDEBAR & BREADCRUMBS
   ======================================== */

aside a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
}

aside a:hover {
  color: var(--accent);
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.docs-sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  padding: 20px;
  border-radius: 16px;
  height: fit-content;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.docs-sidebar h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.docs-sidebar ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.docs-sidebar li {
  margin: 0;
}

.docs-sidebar li + li {
  margin-top: 6px;
}

.docs-sidebar a {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}

.docs-sidebar a:hover {
  color: var(--accent);
  background: rgba(255,255,255,.03);
}

.docs-sidebar a.active-link {
  color: var(--text);
  background: rgba(107,211,255,.12);
  border: 1px solid rgba(107,211,255,.18);
}

.breadcrumbs {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .92rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs span {
  color: var(--muted);
}

/* ========================================
   06. HOMEPAGE HERO & DASHBOARD
   ======================================== */

.hero-dashboard {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-terminal {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(77,240,168,.2);
  color: var(--accent);
  background: rgba(77,240,168,.08);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: .97;
  letter-spacing: -.04em;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 58ch;
}

.hero-search {
  margin: 24px 0 18px;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}

.search-icon {
  color: var(--accent-2);
  font-size: 1.05rem;
}

.search-placeholder {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, rgba(77,240,168,.95), rgba(107,211,255,.9));
  color: #041018;
}

.button-secondary {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-terminal {
  overflow: hidden;
  min-height: 100%;
  background: #041018;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}

.terminal-body {
  padding: 22px 20px 24px;
  font-family: Consolas, Monaco, monospace;
  font-size: .96rem;
  color: #a7cfd0;
}

.terminal-body p {
  margin: 0 0 14px;
}

.term-prompt {
  color: var(--accent);
}

.term-value {
  color: #eaf4ff;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.section-gap {
  margin-top: 8px;
}

.section-header-row {
  margin-bottom: 16px;
}

.section-header-row h2 {
  margin-bottom: 6px;
}

.dashboard-row {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  margin-top: 24px;
}

.mini-card h3 {
  margin-bottom: 8px;
}

/* ========================================
   07. MENUS & DROPDOWNS
   ======================================== */

.menu-primary,
.menu-primary ul,
.menu-primary li,
.menu-footer,
.menu-footer ul,
.menu-footer li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.menu-primary,
.menu-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.menu-primary a,
.menu-footer a {
  color: inherit;
  text-decoration: none;
}

.menu-primary .current-menu-item > a,
.menu-primary .current_page_item > a,
.menu-footer .current-menu-item > a,
.menu-footer .current_page_item > a {
  color: var(--text);
}

.menu-primary {
  position: relative;
}

.menu-primary li {
  position: relative;
}

.menu-primary li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #101d2b;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: none;
  flex-direction: column;
  min-width: 220px;
  box-shadow: var(--shadow);
  z-index: 9999;
  list-style: none !important;
}

.menu-primary li:hover > ul {
  display: flex;
}

.menu-primary li ul li {
  margin: 0;
}

.menu-primary li ul a {
  padding: 8px 10px;
  display: block;
  border-radius: 8px;
  color: var(--muted);
}

.menu-primary li ul a:hover {
  background: rgba(255,255,255,.05);
  color: var(--text);
}

/* ========================================
   08. SEARCH SYSTEM
   ======================================== */

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.search-form input[type="search"] {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.search-form input[type="search"]::placeholder {
  color: var(--muted);
}

.search-form button {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.search-form button:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(107,211,255,.22);
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.live-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #101d2b;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: none;
  overflow: hidden;
  z-index: 9999;
}

.live-search-item,
.live-search-empty {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  background: transparent;
}

.live-search-item:hover {
  background: rgba(255,255,255,.05);
}

.live-search-empty {
  color: var(--muted);
}

mark.search-highlight {
  background: rgba(77, 240, 168, 0.2);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ========================================
   09. SEARCH RESULTS
   ======================================== */

.result-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(77,240,168,0.08);
  border: 1px solid rgba(77,240,168,0.15);
  border-radius: 6px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.search-results-grid .card {
  height: 100%;
}

.search-results-grid .card h3 {
  margin-top: 8px;
  margin-bottom: 10px;
}

.search-results-grid .card p {
  margin-bottom: 0;
}

/* ========================================
   10. CONTENT IMAGES & CREDITS
   ======================================== */

.content-image {
  max-width: 320px;
  margin: 2rem auto;
}

.content-image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

.content-image figcaption {
  font-size: 0.92rem;
  color: #aaa;
  margin-top: 0.5rem;
}

.image-credit {
  font-size: 0.75rem;
  color: #777;
  margin-top: 0.35rem;
}

.image-credit a {
  color: inherit;
  text-decoration: underline;
}

/* ========================================
   11. AI UI COMPONENTS (404, RESPONSE BOXES)
   ======================================== */

.ai-404 {
  text-align: center;
  max-width: 750px;
  margin: 4rem auto;
}

.ai-response-box {
  text-align: left;
  background: linear-gradient(145deg, #0f172a, #020617);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.ai-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #38bdf8;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.ai-response-box p {
  margin: 0.5rem 0;
}

.ai-response-box ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.ai-response-box a {
  color: #7dd3fc;
  text-decoration: underline;
}

.search-label {
  margin-top: 2rem;
  font-weight: 500;
}

.subtle {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 2rem;
}

/* ========================================
   12. RESPONSIVE RULES
   ======================================== */

@media (max-width: 980px) {
  .hero-dashboard,
  .dashboard-row,
  .quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-shell,
  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-3,
  .docs-layout {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   WHAT I'M BUILDING SECTION
   ======================================== */

.section-core {
  padding: 3rem 0 2rem;
}

.section-core .card {
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.card-core {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.card-core:hover {
  transform: translateY(-3px);
  border-color: rgba(77,240,168,.35);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.card-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(77,240,168,.08) 40%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity .25s ease;
}

.card-core:hover::after {
  opacity: 1;
}
/* ========================================
   Logo
   ======================================== */
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.brand-text {
  font-family: Inter, Arial, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-mark {
  color: var(--accent);
  font-family: Consolas, Monaco, monospace;
  font-size: 1.2rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(77,240,168,0.28);
}

.brand-ai {
  color: var(--accent);
}