/* Basic Setup */
:root {
  --color-bg: #050505;
  --color-text: #ffffff;
  --color-text-secondary: #aaaaaa;
  --color-accent: #ffc107;
  --color-accent-hover: #ffd54f;
  --color-surface: #111111;
  --font-family: "Inter", system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --spacing-unit: 1.5rem;
}

[data-theme="light"] {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #555555;
  /* --color-accent: #D32F2F; */
  /* --color-accent: #F57F17; Old Orange */
  /* Hellcat Green - User preferred specific brand color */
  --color-accent: #a0e03a;
  --color-accent-hover: #8ec632;
  --color-surface: #f5f5f5;
  --color-border: #e0e0e0;
}

/* Update base styles to use --color-border where appropriate */
:root {
  --color-border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] header {
  border-bottom: 1px solid var(--color-border);
}

[data-theme="light"] .feature-card,
[data-theme="light"] footer,
[data-theme="light"] .step-image,
[data-theme="light"] .code-block,
[data-theme="light"] .docs-sidebar,
[data-theme="light"] .docs-content h2,
[data-theme="light"] .concept-card,
[data-theme="light"] article {
  border-color: var(--color-border);
}

[data-theme="light"] .code-block {
  background: #f0f0f0;
  color: #24292e;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

/* Announcement Banner */
.announcement-banner {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--color-accent);
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

[data-theme="light"] .announcement-banner {
  background-color: rgba(160, 224, 58, 0.15);
  color: #4a6e00;
  border-bottom: 1px solid rgba(160, 224, 58, 0.3);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

/* Header */
header {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header-logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.header-logo-center img {
  height: 48px;
  width: auto;
  display: block;
  opacity: 0.8;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  display: flex;
  justify-content: flex-start;
  flex: 1;
}

.logo span {
  color: var(--color-accent);
}

nav {
  margin-left: auto;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

@media (max-width: 1000px) {
  .header-logo-center {
    display: none;
  }

  .logo,
  nav {
    flex: unset;
  }
}

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--color-text);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--color-text-secondary);
  color: var(--color-text);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
}

.theme-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Hero */
.hero {
  padding: 8rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #4285f4, #9b72cb, #ea4335, #fbbc04);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.highlight-go {
  color: #79d4fd;
  font-weight: 700;
}

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: #000;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.1rem;
  transition:
    transform 0.2s,
    background-color 0.2s;
}

.btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  color: #000;
}

/* Features */
.features {
  padding: 5rem 0;
  background-color: var(--color-surface);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border-radius: 8px;
  transition: border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.coming-soon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-icon);
  border: 1px solid var(--color-text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.feature-card.coming-soon h3,
.feature-card.coming-soon p {
  opacity: 0.5;
}

.feature-card:hover {
  border-color: var(--color-accent);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* Footer */
footer {
  padding: 4rem 0;
  text-align: center;
  color: var(--color-text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

footer .links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Tutorial Page */
.page-header {
  padding: 6rem 0 4rem;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(66, 133, 244, 0.05) 0%,
    transparent 100%
  );
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.tutorial-steps {
  padding: 4rem 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-content {
  flex: 1;
  position: relative;
}

.step-number {
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: -3rem;
  left: -1rem;
  z-index: -1;
}

.step-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.step-content p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

.step-image {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  /* For zoom hint positioning */
}

.step-image img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  /* Indicate clickable */
  transition: transform 0.3s ease;
}

/* Zoom hint on hover */
.step-image:hover::after {
  content: "Click to zoom";
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-image:hover:has(img)::after {
  opacity: 1;
}

/* Fallback for browsers not supporting :has or if the previous selector is too specific/tricky */
/* Simplified version that assumes .step-image has an img if we want to show the hint. 
   Actually, strict CSS :has support might be limited in some envs, but we'll assume modern. 
   If not, just .step-image:hover::after is fine, but it might show on placeholders. 
   Let's just use a JS class or rely on the fact that placeholders don't have img tags usually or we can target .step-image img directly? 
   No, the ::after needs to be on the container usually to be positioned relative to it EASILY using absolute positioning.
   
   Better approach: Only apply the hint if it contains an image.
   Since I cannot assume :has, I will just apply it to .step-image and maybe I should add a specific class like 'zoomable' to those with images in HTML?
   Or just let it be. If a placeholder is there, "Click to zoom" might appear.
   Wait, placeholders are .placeholder-img divs. They don't have the <img> tag directly inside .step-image usually?
   Looking at HTML:
   <div class="step-image">
      <div class="placeholder-img">...</div>
   </div>
   vs
   <div class="step-image">
      <img ...>
   </div>
   
   So I can target `.step-image:has(img):hover::after`. 
   If :has is not available, I'll just accept it might show on placeholders (which is not ideal) 
   OR I'll modify the HTML to add a class `zoomable` to the parent div. 
   I'll modify HTML to add `zoomable` class to the `.step-image` divs that contain images. 
   That's safer.
*/

.step-image.has-image {
  cursor: zoom-in;
}

.step-image.has-image:hover::after {
  content: "Click to zoom";
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 1;
  /* Triggered by hover on parent */
  pointer-events: none;
  animation: fadeIn 0.3s;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hide it by default for the transition logic - actually opacity 0 to 1 on hover is better */
.step-image.has-image::after {
  content: "Click to zoom";
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.placeholder-img {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e1e1e;
  color: #555;
  font-family: monospace;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .step,
  .step:nth-child(even) {
    flex-direction: column;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Lightbox Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.image-modal.active {
  display: flex;
  opacity: 1;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-modal.active img {
  transform: scale(1);
}

.image-modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: all 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.image-modal-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* Documentation Layout */
.docs-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--spacing-unit);
  display: flex;
  gap: 3rem;
  min-height: calc(100vh - 80px - 150px);
  /* Adjust based on header/footer height */
}

.docs-sidebar {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 2rem;
  align-self: flex-start;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 1rem;
}

.docs-sidebar nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.docs-sidebar nav a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  display: block;
  padding: 0.2rem 0;
}

.docs-sidebar nav ul ul {
  margin-left: 1rem;
  margin-top: 0.5rem;
  border-left: 1px solid var(--color-border);
  padding-left: 1rem;
  gap: 0.5rem;
}

.docs-sidebar nav a:hover {
  color: var(--color-accent);
}

.docs-content {
  flex: 1;
  max-width: 800px;
}

.docs-content section {
  margin-bottom: 4rem;
  scroll-margin-top: 6rem;
  /* Hook for smooth scroll anchor positioning */
}

.docs-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.docs-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.docs-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.docs-content p,
.docs-content li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

.concept-card,
article {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.code-block {
  background: #000;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  color: #a5d6ff;
  margin: 1rem 0;
}

.docs-content dl dt {
  font-weight: 700;
  margin-top: 1.5rem;
  color: var(--color-text);
}

.docs-content dl dd {
  margin-left: 0;
  margin-top: 0.5rem;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .docs-container {
    flex-direction: column;
  }

  .docs-sidebar {
    width: 100%;
    position: static;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
  }
}

.code-block.has-image img {
  width: 67%;
  height: auto;
  display: block;
}

/* Donate Page */
.donate-section {
  padding: 1.5rem 0;
  text-align: center;
}

.donate-container {
  max-width: 400px;
  margin: 0 auto;
}

.donate-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.donate-section p {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.donate-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.donate-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

.donate-qr {
  width: 180px;
  height: auto;
  margin: 0.5rem auto;
  display: block;
  border-radius: 6px;
  border: 2px solid #fff;
}

[data-theme="light"] .donate-qr {
  border-color: #f5f5f5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.wallet-address-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.5rem;
  border-radius: 6px;
  margin-top: 0.75rem;
}

.wallet-address {
  font-family: "Fira Code", monospace;
  font-size: 0.7rem;
  color: var(--color-text);
  word-break: break-all;
  flex: 1;
  text-align: left;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.75rem;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--color-border);
  color: var(--color-accent);
}
