/* -----------------------------
   GLOBAL VARIABLES & THEME
----------------------------- */
:root {
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --border-color: #cbd5e1;
  --success: #10b981;
  --error: #ef4444;
  --font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

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

/* -----------------------------
   LAYOUT & GRID
----------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--bg-card);
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
  z-index: 1;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 0.5rem 0;
  top: 100%;
}

.dropdown-content a {
  color: var(--text-muted);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
}

.dropdown-content a:hover {
  background-color: rgba(255,255,255,0.05);
  color: var(--primary);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: #f8fafc;
  font-size: 1.5rem;
  cursor: pointer;
}

/* -----------------------------
   ADSENSE SLOTS
----------------------------- */
.ad-slot {
  width: 100%;
  min-height: 90px;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  display: none; /* Hidden until AdSense approval */
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin: 2rem 0;
  font-size: 0.875rem;
}

/* -----------------------------
   BUTTONS & ANIMATIONS
----------------------------- */
.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

button {
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card);
  border-color: var(--text-muted);
}

/* Shine Animation */
button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: 0.5s;
}

button:hover::after {
  left: 200%;
}

/* -----------------------------
   TOOL INTERFACE
----------------------------- */
.tool-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

textarea {
  width: 100%;
  min-height: 150px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 8px;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 1rem;
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* -----------------------------
   CONTENT & FAQ
----------------------------- */
.content-section {
  margin-top: 4rem;
}

h1, h2, h3 {
  margin-bottom: 1rem;
  color: var(--text-main);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.faq-q {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.faq-a {
  color: var(--text-muted);
}

/* -----------------------------
   RESPONSIVE DESIGN
----------------------------- */
@media (max-width: 768px) {
  nav {
    display: contents;
  }
  .menu-btn {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #0f172a;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    z-index: 99;
  }
  .nav-links.nav-active {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links li a.dropbtn, .nav-links > li > a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .dropdown-content {
    position: relative;
    box-shadow: none;
    width: 100%;
    background: rgba(0,0,0,0.2);
  }
  .btn-group {
    flex-direction: column;
  }
  .tool-card {
    padding: 1rem;
  }
}

/* Mega Dropdown Styling */
.mega-dropdown {
  min-width: 320px;
}
#search-results-list::-webkit-scrollbar {
  width: 6px;
}
#search-results-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
