/* Theme Convertor - Global Design System */
:root {
  --bg: #080c10;
  --bg2: #0e1318;
  --bg3: #141b22;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #e8edf2;
  --muted: #6b7a8a;
  --hint: #3d4a56;
  --accent: #00d4ff;
  --accent2: #ff6b35;
  --green: #00e5a0;
  --font-main: 'Syne', sans-serif;
  --font-mono: 'Martian Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated bg */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(0,212,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(255,107,53,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Grid texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(8, 12, 16, 0.8);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 32px;
  height: 32px;
}

.nav-logo span {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--accent);
}

/* Header */
header {
  padding: 60px 0 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

h1 span {
  background: linear-gradient(90deg, var(--accent) 0%, #a78bfa 50%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Components */
.main-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  overflow: hidden;
  margin: 40px 0;
  box-shadow: 0 0 60px rgba(0,0,0,0.5), 0 0 120px rgba(0,212,255,0.03);
}

/* Button & UI elements from original */
.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent) 0%, #7c6cf6 100%);
  border: none;
  border-radius: 12px;
  color: #000;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(0,212,255,0.25);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(0,212,255,0.35); }
.btn-secondary {
  padding: 12px 20px;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 12px;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.btn-secondary:hover { border-color: var(--border2); color: var(--text); background: rgba(255,255,255,0.04); }

/* Footer */
footer {
  text-align: center;
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: left;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p, .footer-col a {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  text-decoration: none;
  display: block;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  font-size: 12px;
  color: var(--hint);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Specific to Tools */
.llm-selector { padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--bg3); }
.llm-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.llm-btn { display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 30px; border: 1px solid var(--border2); background: transparent; color: var(--muted); font-family: var(--font-main); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.llm-btn.active { color: #fff; border-color: transparent; }
.llm-dot { width: 7px; height: 7px; border-radius: 50%; }

.input-area { padding: 24px; border-bottom: 1px solid var(--border); }
textarea { width: 100%; background: var(--bg3); border: 1px solid var(--border2); border-radius: 12px; color: var(--text); font-family: var(--font-main); font-size: 14px; padding: 16px; min-height: 120px; }

.output-section { padding: 24px; }
.output-box { background: var(--bg3); border: 1px solid var(--border2); border-radius: 12px; padding: 20px; font-family: var(--font-mono); font-size: 13px; min-height: 140px; color: var(--text); position: relative; }

/* Tool Switcher Section */
.tool-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

.tool-tab {
  padding: 10px 24px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: var(--bg2);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.tool-tab.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* About/Legal Page Content */
.content-page {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.content-page h2 { font-size: 32px; margin-bottom: 24px; color: var(--accent); }
.content-page p { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 20px; }
.content-page h3 { font-size: 20px; margin-top: 40px; margin-bottom: 16px; color: var(--text); }

/* Contact Specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
}

.contact-card i { font-size: 32px; color: var(--accent); margin-bottom: 16px; display: block; }
.contact-card h4 { margin-bottom: 10px; }
.contact-card a { color: var(--accent2); text-decoration: none; font-weight: 700; font-size: 18px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.cursor { display: inline-block; width: 2px; height: 14px; background: var(--accent); margin-left: 2px; vertical-align: middle; animation: blink .8s infinite; }

.loading-bar {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-radius: 12px 12px 0 0;
  animation: shimmer 1.5s infinite;
  display: none;
}
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(200%)} }

/* AdSense Containers */
.ads-container {
  margin: 24px auto;
  min-height: 90px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  max-width: 728px;
}

.ads-label {
  font-size: 9px;
  color: var(--hint);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  position: absolute;
  top: 8px;
  left: 12px;
}

.ads-placeholder-msg {
  font-size: 12px;
  color: var(--hint);
  font-family: var(--font-main);
}
