/* =========================================================
   Appstechy SEO Tools — Shared Stylesheet
   Matches appstechy.com brand: deep blue #0386BC, yellow CTA #ffcd57,
   Plus Jakarta Sans headings, Inter body, 50px pill buttons.
   ========================================================= */

/* -- Google Fonts ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700&display=swap');

/* -- Page title: clear sticky header (110px) + center align */
header.entry-header {
  margin-top: 80px;        /* well below the 110px sticky nav */
  padding-top: 20px;
  text-align: center;
}
header.entry-header .entry-title {
  text-align: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #1e293b;
}

@media (max-width: 921px) {
  header.entry-header { margin-top: 60px; padding-top: 16px; }
}
@media (max-width: 544px) {
  header.entry-header { margin-top: 48px; padding-top: 12px; }
}

/* -- Variables -------------------------------------------- */
:root {
  --at-primary:       #0386BC;   /* Appstechy deep blue */
  --at-primary-dark:  #026a96;
  --at-accent:        #ffcd57;   /* Appstechy golden yellow */
  --at-accent-dark:   #e6b63a;
  --at-secondary:     #67768e;   /* Body text */
  --at-heading:       #1e293b;   /* Heading / dark text */
  --at-success:       #16a34a;
  --at-warning:       #d97706;
  --at-danger:        #dc2626;
  --at-bg:            #f2f5f7;   /* Appstechy light gray */
  --at-card-bg:       #ffffff;
  --at-border:        #e2e8f0;
  --at-radius:        10px;
  --at-shadow:        0 2px 8px rgba(3,134,188,.07), 0 1px 3px rgba(0,0,0,.05);
  --at-font-head:     "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --at-font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* -- Tool Wrapper ----------------------------------------- */
.at-tool {
  font-family: var(--at-font-body);
  font-size: 1rem;
  background: var(--at-bg);
  border: 1px solid var(--at-border);
  border-radius: var(--at-radius);
  padding: 28px 24px;
  margin: 24px 0;
  color: var(--at-heading);
  line-height: 1.65;
}

/* -- Labels ----------------------------------------------- */
.at-label {
  display: block;
  font-family: var(--at-font-head);
  font-size: .78rem;
  font-weight: 700;
  color: var(--at-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

/* -- Inputs ----------------------------------------------- */
.at-input,
.at-textarea,
.at-select {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--at-font-body);
  font-size: .9375rem;
  color: var(--at-heading);
  background: var(--at-card-bg);
  border: 1.5px solid var(--at-border);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.at-input:focus,
.at-textarea:focus,
.at-select:focus {
  border-color: var(--at-primary);
  box-shadow: 0 0 0 3px rgba(3,134,188,.10);
}
.at-input::placeholder,
.at-textarea::placeholder { color: #9ca3af; }

.at-textarea        { resize: vertical; min-height: 160px; }
.at-textarea-sm     { min-height: 120px; }
.at-textarea-lg     { min-height: 240px; }
.at-select          { cursor: pointer; }

/* -- Buttons — match "GET IN TOUCH" header button style --- */
.at-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--at-font-head);
  font-size: .875rem;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 6px;               /* matches GET IN TOUCH shape */
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, transform .1s, box-shadow .18s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: .02em;
  text-transform: uppercase;        /* matches GET IN TOUCH all-caps */
}
.at-btn:active { transform: translateY(1px); }

/* Primary — matches GET IN TOUCH: dark steel-blue, white text */
.at-btn-primary {
  background: #2d6a84;
  color: #ffffff;
  border-color: #2d6a84;
}
.at-btn-primary:hover {
  background: #22536a;
  border-color: #22536a;
  box-shadow: 0 4px 14px rgba(45,106,132,.35);
}

/* Secondary — outlined version of the same dark steel-blue */
.at-btn-secondary {
  background: transparent;
  color: #2d6a84;
  border-color: #2d6a84;
}
.at-btn-secondary:hover {
  background: #2d6a84;
  color: #ffffff;
}

/* Success — used for Copy / Download actions */
.at-btn-success {
  background: #2d6a84;
  color: #ffffff;
  border-color: #2d6a84;
}
.at-btn-success:hover {
  background: #22536a;
  border-color: #22536a;
  box-shadow: 0 4px 14px rgba(45,106,132,.35);
}

/* -- Actions row ----------------------------------------- */
.at-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* -- Stat Cards ------------------------------------------ */
.at-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.at-stat-card {
  flex: 1 1 100px;
  background: var(--at-card-bg);
  border: 1.5px solid var(--at-border);
  border-radius: var(--at-radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--at-shadow);
  transition: box-shadow .2s;
}
.at-stat-card:hover {
  box-shadow: 0 4px 16px rgba(3,134,188,.12);
}
.at-stat-value {
  display: block;
  font-family: var(--at-font-head);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--at-primary);            /* Deep blue numbers */
  line-height: 1.2;
}
.at-stat-label {
  display: block;
  font-size: .73rem;
  color: var(--at-secondary);
  margin-top: 5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* -- Two-column layout ----------------------------------- */
.at-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .at-cols { grid-template-columns: 1fr; }
}

/* -- Result box ------------------------------------------ */
.at-result-box {
  background: var(--at-card-bg);
  border: 1.5px solid var(--at-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: .9rem;
  color: var(--at-heading);
  margin-top: 16px;
  min-height: 60px;
  word-break: break-word;
}

/* -- Badge / Pills --------------------------------------- */
.at-badge {
  display: inline-block;
  font-family: var(--at-font-body);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  vertical-align: middle;
}
.at-badge-good    { background: #dcfce7; color: #15803d; }
.at-badge-warning { background: #fef9c3; color: #92400e; }
.at-badge-error   { background: #fee2e2; color: #dc2626; }
.at-badge-info    { background: rgba(3,134,188,.08); color: var(--at-primary); }

/* -- Checkboxes / Radios --------------------------------- */
.at-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 12px 0;
}
.at-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--at-heading);
  cursor: pointer;
  user-select: none;
}
.at-options input[type="checkbox"],
.at-options input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--at-primary);
  cursor: pointer;
}

/* -- Meta Tags Checker ----------------------------------- */
.at-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.at-meta-row {
  background: var(--at-card-bg);
  border: 1.5px solid var(--at-border);
  border-radius: 8px;
  padding: 12px 16px;
}
.at-meta-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.at-meta-key {
  font-family: var(--at-font-head);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--at-primary);
}
.at-meta-val {
  font-size: .9375rem;
  color: var(--at-heading);
  word-break: break-word;
  white-space: pre-wrap;
}
.at-meta-hint {
  font-size: .78rem;
  color: var(--at-secondary);
  margin-top: 4px;
}
.at-serp-preview {
  background: #fff;
  border: 1.5px solid var(--at-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 16px;
}
.at-serp-url   { font-size: .8rem; color: #3c7a35; }
.at-serp-title {
  font-family: var(--at-font-head);
  font-size: 1.1rem;
  color: var(--at-primary);
  font-weight: 600;
  margin: 3px 0;
  cursor: pointer;
}
.at-serp-title:hover { text-decoration: underline; }
.at-serp-desc  { font-size: .85rem; color: var(--at-secondary); }

/* -- Keyword Density table ------------------------------- */
.at-kd-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: .88rem;
}
.at-kd-table th,
.at-kd-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--at-border);
  color: var(--at-heading);
}
.at-kd-table th {
  background: rgba(3,134,188,.04);
  font-family: var(--at-font-head);
  font-weight: 700;
  color: var(--at-primary);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.at-kd-table tr:last-child td { border-bottom: none; }
.at-kd-bar-wrap {
  background: #e2e8f0;
  border-radius: 999px;
  height: 8px;
  width: 100%;
  min-width: 60px;
}
.at-kd-bar {
  background: var(--at-primary);
  height: 8px;
  border-radius: 999px;
  transition: width .3s;
}

/* -- Alert boxes ----------------------------------------- */
.at-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .9rem;
  margin-top: 14px;
}
.at-alert-info    { background: rgba(3,134,188,.06); color: var(--at-primary); border: 1px solid rgba(3,134,188,.15); }
.at-alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.at-alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.at-alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* -- Loading spinner ------------------------------------- */
.at-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(3,134,188,.15);
  border-top-color: var(--at-primary);
  border-radius: 50%;
  animation: at-spin .7s linear infinite;
  vertical-align: middle;
}
@keyframes at-spin { to { transform: rotate(360deg); } }

/* -- Spacers --------------------------------------------- */
.at-mt { margin-top: 16px; }
.at-mb { margin-bottom: 16px; }

/* -- FAQ Accordion --------------------------------------- */
.at-faq {
  font-family: var(--at-font-body);
  margin: 36px 0 24px;
}
.at-faq-heading {
  font-family: var(--at-font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--at-heading);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--at-border);
}
.at-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* details / summary accordion */
.at-faq-item {
  background: #fff;
  border: 1.5px solid var(--at-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.at-faq-item[open] {
  border-color: #0386BC;
  box-shadow: 0 2px 10px rgba(3,134,188,.12);
}
.at-faq-item summary {
  list-style: none;             /* hide default browser marker */
}
.at-faq-item summary::-webkit-details-marker { display: none; }

.at-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--at-font-head);
  font-size: .975rem;
  font-weight: 600;
  color: var(--at-heading);
  user-select: none;
  transition: background .15s;
}
.at-faq-question:hover {
  background: rgba(3,134,188,.04);
}
.at-faq-item[open] .at-faq-question {
  color: #0386BC;
  background: rgba(3,134,188,.05);
  border-bottom: 1px solid var(--at-border);
}

/* +/– icon */
.at-faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--at-bg);
  border: 1.5px solid var(--at-border);
  position: relative;
  transition: background .2s, border-color .2s, transform .25s;
}
.at-faq-icon::before,
.at-faq-icon::after {
  content: '';
  position: absolute;
  background: #0386BC;
  border-radius: 2px;
}
.at-faq-icon::before {           /* horizontal bar */
  width: 10px; height: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.at-faq-icon::after {            /* vertical bar — rotates out when open */
  width: 2px; height: 10px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .25s, opacity .2s;
}
.at-faq-item[open] .at-faq-icon {
  background: #0386BC;
  border-color: #0386BC;
}
.at-faq-item[open] .at-faq-icon::before,
.at-faq-item[open] .at-faq-icon::after {
  background: #fff;
}
.at-faq-item[open] .at-faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.at-faq-answer {
  padding: 16px 20px 18px;
  color: var(--at-secondary);
  font-size: .9375rem;
  line-height: 1.75;
}
.at-faq-answer p { margin: 0 0 10px; }
.at-faq-answer p:last-child { margin-bottom: 0; }
.at-faq-answer code {
  background: rgba(3,134,188,.08);
  color: #0386BC;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .875rem;
}
.at-faq-answer strong { color: var(--at-heading); }

/* -- Responsive ------------------------------------------ */
@media (max-width: 480px) {
  .at-tool          { padding: 18px 14px; }
  .at-stat-value    { font-size: 1.45rem; }
  .at-btn           { padding: 9px 18px; font-size: .78rem; }
  .at-faq-question  { padding: 13px 15px; font-size: .9rem; }
  .at-faq-answer    { padding: 12px 15px; }
  .at-faq-heading   { font-size: 1.2rem; }
}
