/*
Theme Name: Seoserpclicks Child
Theme URI: https://seoserpclicks.com
Description: Design-system child theme for seoserpclicks.com — slate/electric-blue editorial system.
Template: generatepress
Version: 1.0.0
Author: Site Admin
License: GNU General Public License v2 or later
Text Domain: seoserpclicks-child
*/

/* ---------------------------------------------
   Design tokens
--------------------------------------------- */
:root {
  /* Brand palette — slate base, electric blue accent */
  --ss-ink: #0b1220;
  --ss-ink-2: #1e293b;
  --ss-ink-3: #334155;
  --ss-muted: #64748b;
  --ss-surface: #ffffff;
  --ss-surface-2: #f1f5f9;
  --ss-line: #e2e8f0;
  --ss-brand: #2563eb;
  --ss-brand-dark: #1d4ed8;
  --ss-brand-soft: rgba(37, 99, 235, 0.08);

  /* Type scale (fluid) */
  --ss-text-xs: 0.8rem;
  --ss-text-sm: 0.9rem;
  --ss-text-base: 1.0625rem;
  --ss-text-lg: clamp(1.125rem, 1.5vw, 1.25rem);
  --ss-text-xl: clamp(1.5rem, 2.5vw, 1.9rem);
  --ss-text-2xl: clamp(1.9rem, 3.5vw, 2.6rem);
  --ss-text-3xl: clamp(2.4rem, 5vw, 3.4rem);

  /* Spacing scale */
  --ss-space-1: 0.25rem;
  --ss-space-2: 0.5rem;
  --ss-space-3: 0.75rem;
  --ss-space-4: 1rem;
  --ss-space-6: 1.5rem;
  --ss-space-8: 2rem;
  --ss-space-12: 3rem;
  --ss-space-16: 4rem;

  /* Shape & depth */
  --ss-radius-sm: 0.5rem;
  --ss-radius-md: 0.75rem;
  --ss-radius-lg: 1.1rem;
  --ss-radius-pill: 999px;
  --ss-shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 4px 12px rgba(11, 18, 32, 0.04);
  --ss-shadow-md: 0 4px 16px rgba(11, 18, 32, 0.08), 0 12px 32px rgba(11, 18, 32, 0.06);
  --ss-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------
   Base typography
--------------------------------------------- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--ss-text-base);
  line-height: 1.7;
  color: var(--ss-ink-2);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ss-ink);
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-weight: 800;
}

h1 { font-size: var(--ss-text-3xl); }
h2 { font-size: var(--ss-text-2xl); }
h3 { font-size: var(--ss-text-xl); }

a { transition: color var(--ss-transition); }

/* ---------------------------------------------
   Links in content — accent underline treatment
--------------------------------------------- */
.content-area :is(p, li) a {
  font-weight: 500;
  color: var(--ss-brand);
  text-decoration: none;
  border-bottom: 1px solid var(--ss-brand);
  padding-bottom: 1px;
  transition: color var(--ss-transition), border-color var(--ss-transition);
}

.content-area :is(p, li) a:hover {
  color: var(--ss-brand-dark);
  border-bottom-color: var(--ss-brand-dark);
}

/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.button,
.wp-block-button__link,
button,
input[type="submit"] {
  border-radius: var(--ss-radius-pill) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background-color var(--ss-transition), box-shadow var(--ss-transition), transform var(--ss-transition);
}

.button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: var(--ss-shadow-md);
}

/* ---------------------------------------------
   Cards & blocks
--------------------------------------------- */
.gb-container .gb-container {
  border-radius: var(--ss-radius-lg);
}

.gb-container p:last-child:last-of-type,
.gb-container ul:last-child:last-of-type {
  margin-bottom: 0;
}

.gb-button { line-height: 1.5em; }

.wp-block-image img,
.wp-block-embed {
  border-radius: var(--ss-radius-md);
}

/* Tables — editorial treatment */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--ss-radius-md);
  overflow: hidden;
  box-shadow: var(--ss-shadow-sm);
}

.entry-content th {
  background: var(--ss-surface-2);
  color: var(--ss-ink);
  font-weight: 700;
  text-align: left;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ss-line);
}

/* Blockquotes — pull-quote treatment */
.entry-content blockquote {
  margin: var(--ss-space-8) 0;
  padding: var(--ss-space-4) var(--ss-space-6);
  border-left: 3px solid var(--ss-brand);
  background: var(--ss-brand-soft);
  border-radius: 0 var(--ss-radius-md) var(--ss-radius-md) 0;
  font-style: normal;
}

/* ---------------------------------------------
   Sidebar widgets
--------------------------------------------- */
.wp-block-categories {
  list-style: none;
  margin-left: unset;
}

.wp-block-categories li {
  line-height: 1.5em;
  margin-bottom: var(--ss-space-2);
}

.sidebar .widget {
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius-lg);
  padding: var(--ss-space-6);
  box-shadow: var(--ss-shadow-sm);
  background: var(--ss-surface);
}

/* ---------------------------------------------
   Post navigation & meta
--------------------------------------------- */
.entry-meta {
  color: var(--ss-muted);
  font-size: var(--ss-text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.post-navigation .nav-links,
.paging-navigation .nav-links {
  border-top: 1px solid var(--ss-line);
  padding-top: var(--ss-space-6);
}

/* Drop sidebar below content on tablet (absorbed from Additional CSS) */
@media (max-width: 1024px) {
  .site-content {
    flex-direction: column;
  }

  .site-content .content-area,
  .site-content .is-right-sidebar {
    width: 100%;
  }
}

/* ---------------------------------------------
   Accessibility
--------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--ss-brand);
  outline-offset: 2px;
}
