/* ==========================================================
   STYLES INDEX — Single entry point for all CSS
   ARCcC: assets/styles/index.css
   Import order matters: tokens → utils → components
   ========================================================== */

/* ── Imports (must come before all rules per CSS spec) ────── */
@import url('./design-system/tokens.css');
@import url('./utils/animations.css');
@import url('./components/hero.css');
@import url('./components/gallery.css');
@import url('./components/about.css');
@import url('./components/contact.css');
@import url('./components/area.css');
@import url('./components/hub.css');
@import url('./components/studio.css');
@import url('./components/admin.css');


/* ── 1. Reset & Base ────────────────────────────────────────*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-bg);
  line-height: var(--leading-normal);
  min-height: 100dvh;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom cursor ─────────────────────────────────────────*/
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: var(--z-top);
  transform: translate(-50%, -50%);
  transition:
    width    var(--duration-fast) var(--ease-out),
    height   var(--duration-fast) var(--ease-out),
    opacity  var(--duration-fast) var(--ease-out);
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-accent);
  opacity: 0.4;
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: var(--z-top);
  transform: translate(-50%, -50%);
  transition:
    width    var(--duration-normal) var(--ease-out),
    height   var(--duration-normal) var(--ease-out),
    opacity  var(--duration-normal) var(--ease-out),
    border   var(--duration-fast)   var(--ease-out);
  will-change: transform;
}

.cursor-ring.is-hovering {
  width: 60px;
  height: 60px;
  opacity: 1;
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

body * { cursor: none !important; }

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
  body, body * { cursor: auto !important; }
}

/* ── Navigation ─────────────────────────────────────────────*/
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  transition: background var(--duration-normal) var(--ease-out),
              border     var(--duration-normal) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: var(--tracking-tight);
}

.nav__logo span {
  color: var(--color-accent);
  font-style: italic;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-decoration: none;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover {
  color: var(--color-text-primary);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__link.is-active {
  color: var(--color-accent);
}

/* Current page (multi-page navigation between areas) */
.nav__link[aria-current="page"] {
  color: var(--color-accent);
}

.nav__link[aria-current="page"]::after {
  width: 100%;
}

/* Mobile nav menu */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: var(--space-2);
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-text-secondary);
  transition: all var(--duration-normal) var(--ease-out);
}

@media (max-width: 700px) {
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(20px);
    padding: var(--space-8) var(--space-6);
    gap: var(--space-6);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--duration-normal) var(--ease-out),
      opacity   var(--duration-normal) var(--ease-out);
    z-index: var(--z-overlay);
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav__burger { display: flex; }
  .site-nav { padding: 0 var(--space-6); }
}

[data-theme="light"] .nav__links {
  background: rgba(247, 247, 248, 0.97);
}

[data-theme="light"] .site-nav.is-scrolled {
  background: rgba(247, 247, 248, 0.85);
}

/* ── Theme Toggle Button ──────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: none;
  position: relative;
  flex-shrink: 0;
  transition:
    color       var(--duration-fast) var(--ease-out),
    border      var(--duration-fast) var(--ease-out),
    background  var(--duration-fast) var(--ease-out),
    box-shadow  var(--duration-normal) var(--ease-out);
}

.theme-toggle:hover {
  color: var(--color-accent);
  border-color: rgba(255, 62, 165, 0.4);
  background: var(--color-accent-dim);
  box-shadow: 0 0 16px var(--color-accent-glow);
}

/* ── Language Switcher Button ──────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: none;
  position: relative;
  flex-shrink: 0;
  transition:
    color       var(--duration-fast) var(--ease-out),
    border      var(--duration-fast) var(--ease-out),
    background  var(--duration-fast) var(--ease-out),
    box-shadow  var(--duration-normal) var(--ease-out);
}

.lang-switch:hover {
  color: var(--color-accent);
  border-color: rgba(255, 62, 165, 0.4);
  background: var(--color-accent-dim);
  box-shadow: 0 0 16px var(--color-accent-glow);
}

/* ── Creator Studio Link Button (Local only) ────────────────── */
.admin-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-base);
  cursor: none;
  position: relative;
  flex-shrink: 0;
  transition:
    color       var(--duration-fast) var(--ease-out),
    border      var(--duration-fast) var(--ease-out),
    background  var(--duration-fast) var(--ease-out),
    box-shadow  var(--duration-normal) var(--ease-out);
}

.admin-link-btn:hover {
  color: var(--color-accent);
  border-color: rgba(255, 62, 165, 0.4);
  background: var(--color-accent-dim);
  box-shadow: 0 0 16px var(--color-accent-glow);
}



.theme-toggle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Spin animation on toggle */
.theme-toggle.is-spinning svg {
  animation: theme-spin 0.4s var(--ease-out);
}

@keyframes theme-spin {
  from { transform: rotate(-90deg) scale(0.6); opacity: 0; }
  to   { transform: rotate(0deg)   scale(1);   opacity: 1; }
}

/* Nav right side wrapper (holds toggle + burger) */
.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  padding: var(--space-12) var(--space-6);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.site-footer__text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  letter-spacing: var(--tracking-wide);
}

.site-footer__text a {
  color: var(--color-accent);
  text-decoration: none;
}

/* ── Section divider ─────────────────────────────────────── */
.section-divider {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin: var(--space-6) auto 0;
}


/* ── Selection ───────────────────────────────────────────── */
::selection {
  background: var(--color-accent-dim);
  color: var(--color-accent);
}
