/*
Theme Name: CryptDapp
Theme URI: https://cryptdapp.com
Author: CryptDapp
Author URI: https://cryptdapp.com
Description: A clean, minimal theme for CryptDapp privacy tools.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cryptdapp
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a2e;
  --color-text-light: #555;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-border: #e5e7eb;
  --color-sidebar-bg: #f9fafb;
  --color-card-bg: #ffffff;
  --color-accent: #10b981;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --sidebar-width: 260px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ===== HEADER ===== */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.site-logo span {
  color: var(--color-primary);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a.current {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== LAYOUT ===== */
.site-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 3rem;
  align-items: start;
}

.layout-full {
  max-width: 800px;
  margin: 0 auto;
}

/* ===== SIDEBAR ===== */
.tools-sidebar {
  position: sticky;
  top: 5rem;
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  padding: 0 0.75rem;
}

.tools-nav {
  list-style: none;
}

.tools-nav li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 450;
  transition: background 0.15s, color 0.15s;
}
.tools-nav li a:hover {
  background: var(--color-border);
  color: var(--color-primary);
}
.tools-nav li a.active {
  background: var(--color-primary);
  color: #fff;
}

.tool-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--color-sidebar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.tools-nav li a.active .tool-icon {
  background: rgba(255,255,255,0.2);
}

/* ===== TOOL PAGE ===== */
.tool-header {
  margin-bottom: 2rem;
}

.tool-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.tool-tagline {
  font-size: 1.1rem;
  color: var(--color-text-light);
}

.tool-launch-card {
  background: var(--color-sidebar-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.tool-launch-card p {
  margin-bottom: 1.25rem;
  color: var(--color-text-light);
}

.btn-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-launch:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-launch svg {
  width: 18px;
  height: 18px;
}

.tool-seo-content {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.tool-seo-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tool-seo-content p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ===== TOOLS INDEX (home / tools page) ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tool-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tool-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.tool-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tool-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.tool-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ===== PRIVACY POLICY ===== */
.privacy-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.privacy-content p,
.privacy-content ul {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.privacy-content ul {
  padding-left: 1.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--color-text-light);
  font-size: 0.875rem;
}
.footer-links a:hover {
  color: var(--color-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .tools-sidebar {
    position: static;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .tools-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .tools-nav li a {
    white-space: nowrap;
    padding: 0.5rem 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
  }
  .main-nav.active {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .header-inner {
    padding: 1rem;
  }

  .site-content {
    padding: 1.5rem 1rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
