/* Devil Fruit Wiki - Shared Styles (matching index.html theme) */

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

:root {
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-input: rgba(20, 15, 12, 0.85);
  --border-subtle: rgba(255, 120, 50, 0.15);
  --border-glow: rgba(255, 100, 30, 0.4);
  --text-primary: #faf5f0;
  --text-secondary: #a89080;
  --text-muted: #6a5a4a;
  --flame-orange: #ff6b1a;
  --flame-red: #ff3d00;
  --flame-yellow: #ffaa00;
  --flame-core: #fff4e0;
}

[data-theme="light"] {
  --bg-primary: #faf8f5;
  --bg-secondary: #f0ece6;
  --bg-input: rgba(255, 255, 255, 0.9);
  --border-subtle: rgba(200, 100, 50, 0.2);
  --border-glow: rgba(255, 100, 30, 0.5);
  --text-primary: #1a1410;
  --text-secondary: #6a5a4a;
  --text-muted: #9a8a7a;
  --flame-orange: #e55a10;
  --flame-red: #d03000;
  --flame-yellow: #cc8800;
  --flame-core: #ff6b1a;
}

html, body {
  min-height: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

::selection {
  background: var(--flame-orange);
  color: var(--bg-primary);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text-primary);
}

.logo svg {
  width: 40px;
  height: 40px;
}

.logo span {
  font-family: 'Crimson Pro', serif;
  font-size: 22px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--flame-orange), var(--flame-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-cta {
  font-size: 14px;
  padding: 10px 20px;
  background: var(--flame-orange);
  color: var(--bg-primary);
  text-decoration: none;
  border-radius: 100px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255, 107, 26, 0.4);
  background: var(--flame-yellow);
}

/* Content */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 140px 40px 100px;
}

h1 {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(180deg, var(--flame-core) 0%, var(--flame-yellow) 50%, var(--flame-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.last-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.intro {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

h2 {
  font-family: 'Crimson Pro', serif;
  font-size: 24px;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--flame-orange);
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

ul, ol {
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

li strong {
  color: var(--text-primary);
}

a {
  color: var(--flame-orange);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--flame-yellow);
  text-decoration: underline;
}

/* Footer */
footer {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: var(--text-secondary);
}

/* Theme toggle */
.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: rgba(255, 100, 30, 0.1);
  border-color: var(--border-glow);
  color: var(--flame-orange);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 12px 16px;
  }

  .logo svg {
    width: 36px;
    height: 36px;
  }

  .logo span {
    display: none;
  }

  .nav-cta {
    padding: 8px 14px;
    font-size: 13px;
  }

  .content {
    padding: 100px 16px 60px;
  }

  h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  h2 {
    font-size: 20px;
    margin-top: 32px;
  }

  footer {
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }

  .theme-toggle {
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
  }
}
