/* ==========================================================================
   SmartSoft Tools - CSS Design System & Utility Classes
   Target Domain: smartsoft.website
   Style Concept: Modern Dark / High-Tech Glassmorphism / Vibrant Accents
   ========================================================================== */

:root {
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-border: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #38bdf8;
  --primary-hover: #0284c7;
  --accent: #818cf8;
  --success: #34d399;
  --danger: #f87171;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Nav */
header {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-card-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Main Container */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* Card Grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.15);
}

.tool-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tool-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.tool-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.tool-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  margin-top: 1rem;
  font-weight: 600;
}

/* Tool Interface Box */
.tool-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.tool-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.btn {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.btn:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

textarea, input[type="text"] {
  width: 100%;
  background: #020617;
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  color: var(--text-main);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  resize: vertical;
}

textarea:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
}

/* Ad Placement Placeholder Styling */
.ad-slot-container {
  width: 100%;
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px dashed var(--bg-card-border);
  border-radius: 8px;
}

/* Article / Documentation Section (SEO Section) */
.seo-article {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 2.5rem;
}

.seo-article h2 {
  font-size: 1.8rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.seo-article h3 {
  font-size: 1.3rem;
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.seo-article p, .seo-article ul, .seo-article ol {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.seo-article ul, .seo-article ol {
  padding-left: 1.5rem;
}

.seo-article code {
  background: #020617;
  color: var(--accent);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--bg-card-border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Status Notifications */
.status-msg {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}
.status-success { background: rgba(52, 211, 153, 0.15); color: var(--success); border: 1px solid var(--success); }
.status-error { background: rgba(248, 113, 113, 0.15); color: var(--danger); border: 1px solid var(--danger); }
