/* ===== GLOBAL RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F4F6F8;
  --card-bg: #ffffff;
  --text-main: #0A192F;
  --text-muted: #545454;
  --header-dark: #0A192F;
  --green: #00BFA6;
  --green-hover: #008f7a;
  --hero-gradient: linear-gradient(135deg, #0A192F 0%, #00BFA6 60%, #38EF7D 100%);
  --ad-bg: rgba(0, 0, 0, 0.03);
  --border: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
  --bg: #050d1a;
  --card-bg: #112240;
  --text-main: #ffffff;
  --text-muted: #bdc1c6;
  --ad-bg: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  transition: background 0.3s ease;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--header-dark);
  padding: 15px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  max-height: 45px;
}

.header-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 15px;
  transition: 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--green);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 2px;
}

.dark-mode-toggle {
  background: var(--green);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  margin-left: 10px;
}

/* ===== AD SLOTS ===== */
.sponsor-slot {
  width: 100%;
  background: var(--ad-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  margin: 10px 0;
}

.sponsor-slot span {
  font-size: 0.65rem;
  color: #888;
  letter-spacing: 2px;
  font-weight: 700;
}

.top-ad {
  min-height: 90px;
}

.feed-ad {
  min-height: 250px;
}

/* ===== HERO SECTION ===== */
.seo-hero {
  background: var(--hero-gradient);
  color: white;
  text-align: center;
  padding: 70px 20px;
}

.seo-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.seo-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== MAIN CONTAINER ===== */
.seo-container {
  max-width: 850px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

/* ===== TOOL CARD ===== */
.tool-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.tool-card h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
  color: var(--green);
}

.tool-card p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.tool-textarea {
  width: 100%;
  height: 200px;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-family: 'Courier New', monospace;
  margin-bottom: 25px;
  background: #fafafa;
  color: #333;
  resize: vertical;
}

body.dark-mode .tool-textarea {
  background: #0d192e;
  color: #fff;
  border-color: #233554;
}

.tool-btn-main {
  background: var(--green);
  color: white;
  border: none;
  padding: 18px 45px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
}

.tool-btn-main:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
}

.tool-btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
  padding: 16px 30px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.tool-btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ===== AUDIT TABLE (Alt Text Specific) ===== */
.results-container {
  margin-top: 40px;
  text-align: left;
  border-top: 2px solid var(--green);
  padding-top: 30px;
}

.tool-summary {
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.1rem;
}

.table-responsive {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
}

.audit-table th {
  background: rgba(0, 191, 166, 0.05);
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.audit-table th,
.audit-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.audit-table td img {
  max-width: 80px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Badges */
.badge {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
}

.badge.valid {
  background: #d4edda;
  color: #155724;
}

.badge.error {
  background: #f8d7da;
  color: #721c24;
}

.badge.warning {
  background: #fff3cd;
  color: #856404;
}

.tool-suggestion-text {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--green);
  font-style: italic;
}

/* ===== INFO CARDS & TRUST GRID ===== */
.info-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.info-card h2 {
  margin-bottom: 25px;
  color: var(--green);
  font-weight: 800;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.trust-card {
  background: rgba(0, 0, 0, 0.02);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid var(--border);
}

body.dark-mode .trust-card {
  background: rgba(255, 255, 255, 0.03);
}

.trust-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--green);
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 20px;
}

.faq-item strong {
  color: var(--green);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== TAG CLOUD ===== */
.tag-cloud {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.tag-cloud a {
  text-decoration: none;
  background: #0A192F;
  color: white;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: 0.3s ease;
}

.tag-cloud a:hover {
  background: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 191, 166, 0.3);
}

/* ===== FOOTER ===== */
footer {
  background: var(--header-dark);
  color: white;
  text-align: center;
  padding: 50px 20px;
  margin-top: 80px;
}

footer a,
footer a:visited {
  color: var(--green) !important;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
  transition: 0.3s;
}

footer a:hover {
  color: var(--green-hover) !important;
  text-decoration: underline;
}

.social-links a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.social-links a:hover {
  color: var(--green);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-dark);
    padding: 20px;
    gap: 15px;
    z-index: 999;
  }

  .header-nav.active {
    display: flex;
  }

  .seo-hero h1 {
    font-size: 2rem;
  }

  .tool-card {
    padding: 25px;
  }

  .tool-actions-row {
    flex-direction: column;
  }

  .tool-btn-main,
  .tool-btn-secondary {
    width: 100%;
  }
}