/* Global Styles */
:root {
  --bg-color: #0f0f0f;
  --text-color: #eaeaea;
  --text-muted: #a0a0a0;
  --accent-color: #00ff88;
  --accent-dim: #1a4a2e;
  --error-color: #ff3333;
  --panel-bg: #1e1e1e;
  --border-color: #333;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Modern Navbar (Light Glassmorphism) ── */
header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #162954;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo:hover {
  text-decoration: none;
  opacity: 0.85;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links > a {
  color: #374151;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 6px 11px;
  border-radius: 6px;
  position: relative;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-links > a::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: #00B07A;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.nav-links > a:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.nav-links > a:hover::after {
  transform: scaleX(1);
}

.nav-links > a.active {
  color: #00955f;
  background: rgba(0, 176, 122, 0.08);
  text-decoration: none;
}

.nav-links > a.active::after {
  transform: scaleX(1);
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #374151;
  font-size: 1.15rem;
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 10px;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.hamburger:hover {
  border-color: #00955f;
  color: #00955f;
  background: rgba(0, 149, 95, 0.05);
}

/* Typography for Content */
h1, h2, h3 {
  color: #fff;
  margin-bottom: 15px;
  line-height: 1.3;
}

h1 { font-size: 2.2rem; margin-top: 30px; text-align: center; }
h2 { font-size: 1.6rem; margin-top: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 5px; }
h3 { font-size: 1.2rem; margin-top: 20px; }

p { margin-bottom: 15px; }
ul, ol { margin-bottom: 15px; padding-left: 20px; }
li { margin-bottom: 5px; }

.seo-content {
  margin-top: 50px;
  padding-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Common UI Elements */
button {
  background-color: var(--panel-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background-color 0.2s, border-color 0.2s;
}

button:hover {
  background-color: #2a2a2a;
  border-color: var(--accent-color);
}

button.primary {
  background-color: var(--accent-dim);
  border-color: var(--accent-color);
  color: #fff;
}

button.primary:hover {
  background-color: var(--accent-color);
  color: #000;
}

/* Ad Slots */
.ad-slot {
  display: block !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  border: none !important;
}
.ad-leaderboard {
  width: 728px; max-width: 100%; height: 90px; margin: 20px auto;
}
.ad-rectangle {
  width: 300px; height: 250px; margin: 30px auto;
}

/* Footer */
footer {
  background-color: #eaeaea !important;
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--accent-color);
}

/* Layout Utilities */
.tool-section {
  text-align: center;
  margin: 30px 0;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #1a1a1a;
  border: 1px solid #333;
  color: #eaeaea;
  padding: 10px 36px 10px 15px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  font-family: inherit;
  min-width: 140px;
}

select:hover {
  border-color: var(--accent-color);
  background-color: #222222;
}

select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

select option {
  background-color: #1a1a1a;
  color: #eaeaea;
  padding: 10px;
}

.tool-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.status-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 6px;
  max-width: 600px;
  margin: 20px auto;
  text-align: left;
}

.alert {
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  display: none;
}
.alert.visible { display: block; }
.alert-error {
  background-color: rgba(255, 51, 51, 0.1);
  border: 1px solid var(--error-color);
  color: #ffaaaa;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}
.badge-pass { background: rgba(0, 255, 136, 0.2); color: var(--accent-color); }
.badge-fail { background: rgba(255, 51, 51, 0.2); color: #ffaaaa; }

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex !important; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 12px 20px 16px;
    z-index: 999;
    gap: 2px;
  }
  .nav-links.show { display: flex; }
  .nav-links > a {
    padding: 10px 12px !important;
    border-radius: 8px;
  }
  .nav-links > a::after {
    display: none;
  }
}

/* FAQ Dropdown Component */
.faq-details {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-summary {
  padding: 18px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background-color 0.2s;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:hover {
  background: #252525;
}

.faq-summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-color);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-details[open] {
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.1);
}

.faq-details[open] .faq-summary::after {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 20px 20px 20px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  animation: faq-fade-in 0.3s ease forwards;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

@keyframes faq-fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Footer ── */
footer {
  background-color: #eaeaea;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px;
  text-align: left;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-right: 20px;
}

.footer-logo-img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-desc {
  color: #374151 !important;
  font-size: 0.95rem !important;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-col h4 {
  color: black;
  font-size: 1rem;
  margin-bottom: 25px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: 11px;
}

.footer-col a {
  color: #374151;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 11px;
  border-radius: 6px;
  position: relative;
  transition: color 0.18s, background 0.18s;
  text-decoration: none;
  margin-bottom: 5px;
}

.footer-col a::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: #00B07A;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.footer-col a:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.05);
}

.footer-col a:hover::after {
  transform: scaleX(1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 50px;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  color: #374151 !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
}

/* ── Navigation Dropdown ── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: #374151;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 6px 11px;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.nav-dropdown-trigger:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.nav-dropdown-trigger .arrow {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.nav-dropdown-content {
  display: block;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  transform: translateY(6px);
  background: #ffffff;
  backdrop-filter: blur(20px);
  min-width: 240px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  z-index: 1001;
  padding: 8px;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
}

.nav-dropdown-content a {
  color: #374151 !important;
  padding: 9px 14px;
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  border: none !important;
}

.nav-dropdown-content a:hover {
  background: rgba(0, 149, 95, 0.07);
  color: #00955f !important;
  text-decoration: none;
}

/* Hover open on desktop */
@media (min-width: 769px) {
  .nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-dropdown:hover .nav-dropdown-trigger .arrow {
    transform: rotate(180deg);
  }
}

/* ── Mobile Dropdown ── */
@media (max-width: 768px) {
  .nav-dropdown {
    display: block;
    width: 100%;
  }
  .nav-dropdown-trigger {
    width: 100%;
    color: #374151 !important;
    padding: 10px 12px !important;
    border-radius: 8px;
  }
  .nav-dropdown-content {
    display: block !important;
    position: static;
    transform: none !important;
    background: rgba(0, 0, 0, 0.03);
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 6px 8px;
    margin: 4px 0;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
  }
  .nav-dropdown-content a {
    color: #8a95a8 !important;
    padding: 8px 10px !important;
    font-size: 0.85rem !important;
    border-radius: 6px;
  }
  .nav-dropdown-content a:hover {
    background: rgba(0,255,136,0.08) !important;
    color: var(--accent-color) !important;
  }
}
