/* ======================================================
   Google News Optimizer — ODEaling
   style.css
   ====================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:       #0d0d0d;
  --ink2:      #444444;
  --ink3:      #888888;
  --surface:   #ffffff;
  --surface2:  #f5f4f0;
  --surface3:  #ebe9e1;
  --accent:    #1a5c38;
  --accent2:   #e8f5ef;
  --accent3:   #2d8a5a;
  --green:     #1a5c38;
  --amber:     #b86e0a;
  --red:       #b83232;
  --border:    rgba(0,0,0,0.10);
  --border2:   rgba(0,0,0,0.06);
  --rad:       12px;
  --rad-sm:    8px;
  --shadow:    0 2px 16px rgba(0,0,0,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface2);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, em { font-family: 'Playfair Display', serif; }
em { font-style: italic; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--surface); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: .75rem; }

.brand-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
}

.brand-sub {
  color: rgba(255,255,255,0.45);
  font-size: .72rem;
  letter-spacing: .04em;
}

.header-nav {
  display: flex;
  gap: 1.75rem;
}

.header-nav a {
  color: rgba(255,255,255,0.55);
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s;
}

.header-nav a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-lines span {
  position: absolute;
  top: 0; bottom: 0;
  width: 0.5px;
  background: rgba(255,255,255,0.04);
}

.hero-bg-lines span:nth-child(1) { left: 15%; }
.hero-bg-lines span:nth-child(2) { left: 30%; }
.hero-bg-lines span:nth-child(3) { left: 50%; }
.hero-bg-lines span:nth-child(4) { left: 70%; }
.hero-bg-lines span:nth-child(5) { left: 85%; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  padding: .35rem .9rem;
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-title em {
  color: #6ed8a0;
}

.hero-desc {
  color: rgba(255,255,255,0.55);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num { display: block; font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #fff; }
.stat-lbl { font-size: .75rem; color: rgba(255,255,255,0.4); letter-spacing: .06em; text-transform: uppercase; }
.stat-divider { width: 0.5px; height: 40px; background: rgba(255,255,255,0.12); }

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--rad);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.card-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 1rem;
}

/* ---------- Audit Input ---------- */
.audit-card { margin-top: -2.5rem; position: relative; z-index: 10; }

.url-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.url-input-wrap {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.url-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink3);
  pointer-events: none;
}

.url-input-wrap input {
  width: 100%;
  padding: .85rem 1rem .85rem 2.75rem;
  border: 0.5px solid var(--border);
  border-radius: var(--rad-sm);
  font-size: .975rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--surface2);
  color: var(--ink);
  outline: none;
  transition: border-color .2s, background .2s;
}

.url-input-wrap input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--rad-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

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

.btn-primary:hover { opacity: .85; transform: translateY(-1px); }
.btn-primary:active { transform: scale(.98); opacity: 1; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Loader ---------- */
.loader-wrap { margin-top: 1rem; }

.loader-bar {
  height: 3px;
  background: var(--surface3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: .5rem;
}

.loader-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: loaderAnim 1.8s ease-in-out infinite;
}

@keyframes loaderAnim {
  0%   { width: 0%;  margin-left: 0; }
  50%  { width: 55%; margin-left: 22%; }
  100% { width: 0%;  margin-left: 100%; }
}

.loader-msg { font-size: .82rem; color: var(--ink3); }

/* ---------- Alert ---------- */
.alert {
  margin-top: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--rad-sm);
  font-size: .875rem;
}

.alert-success { background: var(--accent2); color: var(--green); border: 0.5px solid #a8d9bc; }
.alert-error   { background: #fdecea; color: var(--red);   border: 0.5px solid #f5a8a3; }
.alert-info    { background: #e8edf7; color: #1a3f8a; border: 0.5px solid #aabcdc; }

/* ---------- Score Banner ---------- */
.score-banner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2rem;
  border-radius: var(--rad);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.score-banner.good { background: #1a5c38; color: #fff; }
.score-banner.warn { background: #6b4000; color: #fff; }
.score-banner.bad  { background: #6b0000; color: #fff; }

.score-ring-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.score-ring { width: 100px; height: 100px; }

.score-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1;
}

.score-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.score-unit { font-size: .75rem; color: rgba(255,255,255,0.6); }

.score-info { flex: 1; }

.score-verdict {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: .4rem;
}

.score-url {
  font-size: .82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: .75rem;
  word-break: break-all;
}

.score-badges { display: flex; gap: .5rem; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 500;
}

.badge-green  { background: rgba(255,255,255,0.18); color: #fff; }
.badge-amber  { background: rgba(255,200,0,0.25); color: #ffe88a; }
.badge-red    { background: rgba(255,80,80,0.25); color: #ffb3b3; }

/* ---------- Category Tabs ---------- */
.tabs-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.tab {
  padding: .5rem 1.1rem;
  border-radius: 20px;
  font-size: .835rem;
  font-weight: 500;
  cursor: pointer;
  border: 0.5px solid var(--border);
  background: var(--surface);
  color: var(--ink2);
  transition: all .15s;
  user-select: none;
}

.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Checks Grid ---------- */
.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

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

.check-item {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--rad-sm);
  padding: 1rem;
  transition: border-color .2s, box-shadow .2s;
}

.check-item:hover {
  border-color: rgba(0,0,0,0.18);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.check-item.status-fail { border-left: 3px solid #e74c3c; }
.check-item.status-warn { border-left: 3px solid #e67e22; }
.check-item.status-pass { border-left: 3px solid var(--accent); }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.check-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.check-icon.pass { background: #e8f5ef; color: #1a5c38; }
.check-icon.fail { background: #fdecea; color: #c0392b; }
.check-icon.warn { background: #fef4e4; color: #b86e0a; }

.check-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.check-detail {
  font-size: .78rem;
  color: var(--ink2);
  margin-top: 3px;
  line-height: 1.5;
}

.check-fix {
  font-size: .75rem;
  margin-top: .5rem;
  padding: .35rem .6rem;
  background: var(--surface2);
  border-radius: 5px;
  color: var(--ink2);
  border-left: 2px solid var(--amber);
}

.check-fix strong { color: var(--amber); font-weight: 600; }

/* ---------- Section Header ---------- */
.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: .75rem;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-desc {
  color: var(--ink2);
  font-size: .975rem;
}

/* ---------- Requirements Grid ---------- */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.req-card {
  background: var(--surface2);
  border: 0.5px solid var(--border);
  border-radius: var(--rad);
  padding: 1.5rem;
}

.req-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--rad-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.req-icon svg { width: 22px; height: 22px; }

.req-icon-tech    { background: #e8edf7; color: #1a3f8a; }
.req-icon-content { background: #e8f5ef; color: var(--green); }
.req-icon-policy  { background: #fef4e4; color: var(--amber); }
.req-icon-pub     { background: #fdecea; color: var(--red); }

.req-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .75rem;
  color: var(--ink);
}

.req-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.req-card ul li {
  font-size: .83rem;
  color: var(--ink2);
  display: flex;
  align-items: center;
  gap: .5rem;
  line-height: 1.4;
}

.req-card ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.contact-left .section-title { margin-bottom: 1rem; }

.contact-desc {
  color: var(--ink2);
  font-size: .95rem;
  margin-bottom: 1.75rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--rad-sm);
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
}

.contact-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(26,92,56,0.08);
}

.ci-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--rad-sm);
  background: var(--accent2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.ci-icon svg { width: 20px; height: 20px; }

.ci-icon-wa { background: #e6f7ef; color: #25a349; }

.ci-body { flex: 1; }
.ci-label { font-size: .72rem; color: var(--ink3); font-weight: 500; letter-spacing: .04em; margin-bottom: 2px; }
.ci-val { font-size: .925rem; font-weight: 500; color: var(--ink); }

.hours-box {
  background: var(--surface2);
  border: 0.5px solid var(--border);
  border-radius: var(--rad-sm);
  padding: 1.1rem 1.25rem;
}

.hours-title {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: .75rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: .855rem;
  color: var(--ink2);
  padding: .25rem 0;
  border-bottom: 0.5px solid var(--border2);
}

.hours-row:last-child { border-bottom: none; }

/* ---------- Form Card ---------- */
.form-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--rad);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: .35rem;
}

.form-card-sub {
  font-size: .875rem;
  color: var(--ink2);
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

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

.form-full { grid-column: 1 / -1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink2);
}

.req { color: var(--red); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: .7rem .9rem;
  border: 0.5px solid var(--border);
  border-radius: var(--rad-sm);
  font-size: .9rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--surface2);
  color: var(--ink);
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-footer { margin-top: 1.25rem; }

.form-privacy {
  margin-top: .75rem;
  font-size: .75rem;
  color: var(--ink3);
  text-align: center;
}

/* ---------- Form Alerts (PHP) ---------- */
.form-alert {
  padding: .85rem 1rem;
  border-radius: var(--rad-sm);
  font-size: .875rem;
  margin-bottom: 1.25rem;
}

.form-alert-success {
  background: var(--accent2);
  color: var(--green);
  border: 0.5px solid #a8d9bc;
}

.form-alert-error {
  background: #fdecea;
  color: var(--red);
  border: 0.5px solid #f5a8a3;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 2rem 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-size: .875rem;
  color: rgba(255,255,255,0.7);
}

.footer-brand strong { color: #fff; }

.footer-contact {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
}

.footer-contact a { color: rgba(255,255,255,0.6); transition: color .2s; }
.footer-contact a:hover { color: #6ed8a0; }

.footer-copy { font-size: .78rem; color: rgba(255,255,255,0.35); }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .section { padding: 3.5rem 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .header-nav { display: none; }
}
