/*
Theme Name:   Kadence Child — SmokeTastic
Theme URI:    https://smoketastic.com
Description:  SmokeTastic 2026 child theme built on Kadence. Dark-first vape review platform.
Author:       Nicholas King
Author URI:   https://smoketastic.com
Template:     kadence
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  kadence-child-smoketastic
Tags:         dark-mode, review, vape, custom
*/

/* =========================================================
   SMOKETASTIC 2026 — DESIGN SYSTEM
   ========================================================= */

:root {
  /* Brand palette */
  --st-accent:          #E8593C;   /* Smoketastic coral/orange */
  --st-accent-dark:     #C43E22;
  --st-accent-light:    #FF7A5A;
  --st-accent-glow:     rgba(232, 89, 60, 0.15);

  --st-green:           #2ECC71;   /* Eco / sustainability */
  --st-green-dark:      #1DA85A;
  --st-blue:            #3B8BD4;   /* Info / links */

  /* Dark mode surfaces */
  --st-bg-primary:      #0F0F0F;
  --st-bg-secondary:    #1A1A1A;
  --st-bg-card:         #222222;
  --st-bg-card-hover:   #2A2A2A;
  --st-border:          rgba(255,255,255,0.08);
  --st-border-hover:    rgba(255,255,255,0.16);

  /* Typography */
  --st-text-primary:    #F5F5F5;
  --st-text-secondary:  #A0A0A0;
  --st-text-muted:      #666666;

  /* Spacing */
  --st-radius-sm:       6px;
  --st-radius-md:       12px;
  --st-radius-lg:       18px;
  --st-radius-xl:       24px;

  /* Shadows */
  --st-shadow-card:     0 2px 12px rgba(0,0,0,0.4);
  --st-shadow-accent:   0 4px 24px rgba(232, 89, 60, 0.25);

  /* Transitions */
  --st-transition:      0.2s ease;
}

/* =========================================================
   GLOBAL RESETS & BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--st-bg-primary);
  color: var(--st-text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
  color: var(--st-text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--st-text-secondary);
  margin-bottom: 1.25em;
}

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

a:hover {
  color: var(--st-accent-light);
}

strong, b {
  color: var(--st-text-primary);
  font-weight: 600;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.site-container,
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header,
#masthead {
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--st-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--st-transition);
}

.site-branding .site-title a,
.site-title a {
  color: var(--st-text-primary) !important;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.site-branding .site-title a span,
.site-title a span {
  color: var(--st-accent);
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.main-navigation a,
.nav-menu a,
.kadence-navigation a {
  color: var(--st-text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--st-transition);
  padding: 8px 14px;
}

.main-navigation a:hover,
.nav-menu a:hover,
.kadence-navigation a:hover {
  color: var(--st-text-primary) !important;
}

.main-navigation .current-menu-item > a,
.nav-menu .current-menu-item > a {
  color: var(--st-accent) !important;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.wp-block-button__link,
.button,
.btn,
button:not(.search-submit):not(.menu-toggle):not(.close-btn) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--st-radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all var(--st-transition);
  cursor: pointer;
  border: none;
}

.wp-block-button.is-style-fill .wp-block-button__link,
.btn-primary,
.button-primary {
  background: var(--st-accent);
  color: #fff !important;
  box-shadow: var(--st-shadow-accent);
}

.wp-block-button.is-style-fill .wp-block-button__link:hover,
.btn-primary:hover,
.button-primary:hover {
  background: var(--st-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(232, 89, 60, 0.35);
}

.wp-block-button.is-style-outline .wp-block-button__link,
.btn-secondary {
  background: transparent;
  color: var(--st-accent) !important;
  border: 1.5px solid var(--st-accent);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.btn-secondary:hover {
  background: var(--st-accent-glow);
  transform: translateY(-1px);
}

/* =========================================================
   CARDS — Universal card pattern
   ========================================================= */

.st-card,
.wp-block-post,
article.post,
.post-card {
  background: var(--st-bg-card);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-lg);
  overflow: hidden;
  transition: all var(--st-transition);
}

.st-card:hover,
article.post:hover,
.post-card:hover {
  border-color: var(--st-border-hover);
  box-shadow: var(--st-shadow-card);
  transform: translateY(-2px);
}
/* =========================================================
   FEATURED IMAGE - REFINED
   ========================================================= */

/* Override Kadence's padding-based aspect-ratio container on single posts */
  .single .article-post-thumbnail {
      height: auto !important;
      padding-bottom: 0 !important;
      overflow: visible;
  }
  .single .article-post-thumbnail .post-thumbnail-inner {
      position: static !important;
  }

  /* Featured image — natural proportions, capped at 800px on desktop */
  .wp-post-image, .post-thumbnail img, .entry-thumbnail img {
      width: 100%;
      height: auto;
      display: block;
  }
  @media (min-width: 992px) {
      .wp-post-image, .post-thumbnail img, .entry-thumbnail img {
          max-width: 800px;
          margin: 0 auto 10px;
          border-radius: var(--st-radius-lg, 8px);
      }
  }

/* =========================================================
   CONTENT AREA
   ========================================================= */

.entry-content,
.post-content,
.wp-block-group {
  color: var(--st-text-secondary);
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.post-content h2,
.post-content h3 {
  color: var(--st-text-primary);
  margin-top: 2em;
}

/* =========================================================
   REVIEW SCORECARD — Core component for all reviews
   ========================================================= */

.st-scorecard {
  background: var(--st-bg-card);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-lg);
  padding: 28px 32px;
  margin: 32px 0;
}

.st-scorecard__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--st-text-muted);
  margin-bottom: 20px;
}

.st-scorecard__overall {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--st-border);
}

.st-scorecard__score {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--st-accent);
  line-height: 1;
  min-width: 80px;
}

.st-scorecard__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--st-text-primary);
}

.st-scorecard__sublabel {
  font-size: 0.85rem;
  color: var(--st-text-muted);
  margin-top: 4px;
}

.st-scorecard__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.st-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.st-metric__label {
  font-size: 0.8rem;
  color: var(--st-text-muted);
  font-weight: 500;
}

.st-metric__bar {
  height: 6px;
  background: var(--st-border);
  border-radius: 999px;
  overflow: hidden;
}

.st-metric__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--st-accent);
  transition: width 0.6s ease;
}

.st-metric__fill--green { background: var(--st-green); }
.st-metric__fill--blue  { background: var(--st-blue); }

.st-metric__value {
  font-size: 0.8rem;
  color: var(--st-text-secondary);
  font-weight: 600;
}

/* =========================================================
   ECO SCORE BADGE
   ========================================================= */

.st-eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.25);
  color: var(--st-green);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.st-eco-badge::before {
  content: '🌿';
  font-size: 14px;
}

/* =========================================================
   PROS & CONS BLOCK
   ========================================================= */

.st-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

@media (max-width: 600px) {
  .st-pros-cons { grid-template-columns: 1fr; }
}

.st-pros,
.st-cons {
  background: var(--st-bg-card);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
  padding: 20px 24px;
}

.st-pros { border-top: 3px solid var(--st-green); }
.st-cons { border-top: 3px solid #E74C3C; }

.st-pros__title,
.st-cons__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.st-pros__title { color: var(--st-green); }
.st-cons__title { color: #E74C3C; }

.st-pros ul,
.st-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.st-pros li,
.st-cons li {
  font-size: 0.9rem;
  color: var(--st-text-secondary);
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
  border-bottom: none;
}

.st-pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--st-green);
  font-weight: 700;
}

.st-cons li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #E74C3C;
  font-weight: 700;
}

/* =========================================================
   COMPARISON TABLE
   ========================================================= */

.st-comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--st-bg-card);
  border-radius: var(--st-radius-lg);
  overflow: hidden;
  margin: 28px 0;
}

.st-comparison-table th {
  background: var(--st-bg-secondary);
  color: var(--st-text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 20px;
  text-align: left;
}

.st-comparison-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--st-text-secondary);
  border-bottom: 1px solid var(--st-border);
}

.st-comparison-table tr:last-child td {
  border-bottom: none;
}

.st-comparison-table tr:hover td {
  background: var(--st-bg-card-hover);
}

.st-comparison-table .st-winner {
  color: var(--st-accent);
  font-weight: 600;
}

/* =========================================================
   AFFILIATE LINK BUTTON — "Best Price" CTA
   ========================================================= */

.st-affiliate-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--st-bg-card);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-lg);
  padding: 20px 24px;
  margin: 24px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.st-affiliate-cta__label {
  font-size: 0.8rem;
  color: var(--st-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
}

.st-affiliate-cta__price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--st-text-primary);
}

.st-affiliate-cta__btn {
  background: var(--st-accent) !important;
  color: #fff !important;
  padding: 14px 28px;
  border-radius: var(--st-radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--st-transition);
  white-space: nowrap;
  display: inline-block;
  box-shadow: var(--st-shadow-accent);
}

.st-affiliate-cta__btn:hover {
  background: var(--st-accent-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(232, 89, 60, 0.4);
}

.st-affiliate-disclosure {
  font-size: 0.75rem;
  color: var(--st-text-muted);
  font-style: italic;
  margin-top: 8px;
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.st-hero {
  background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 50%, #0F0F0F 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.st-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(232,89,60,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* =========================================================
   BADGE PILLS
   ========================================================= */

.st-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.st-badge--new       { background: rgba(232,89,60,0.15); color: var(--st-accent); border: 1px solid rgba(232,89,60,0.3); }
.st-badge--best      { background: rgba(241,196,15,0.12); color: #F1C40F; border: 1px solid rgba(241,196,15,0.25); }
.st-badge--eco       { background: rgba(46,204,113,0.12); color: var(--st-green); border: 1px solid rgba(46,204,113,0.25); }
.st-badge--budget    { background: rgba(59,139,212,0.12); color: var(--st-blue); border: 1px solid rgba(59,139,212,0.25); }
.st-badge--editor    { background: rgba(155,89,182,0.12); color: #9B59B6; border: 1px solid rgba(155,89,182,0.25); }

/* =========================================================
   SIDEBAR
   ========================================================= */

.widget-area,
.sidebar {
  background: var(--st-bg-card);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-lg);
  padding: 24px;
}

.widget-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--st-text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--st-border);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer,
#colophon {
  background: var(--st-bg-secondary);
  border-top: 1px solid var(--st-border);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.site-footer a {
  color: var(--st-text-muted);
  transition: color var(--st-transition);
}

.site-footer a:hover {
  color: var(--st-accent);
}

.site-info,
.footer-credits {
  color: var(--st-text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* =========================================================
   FORMS & INPUTS
   ========================================================= */

input[type="text"],
input[type="email"],
input[type="search"],
select,
textarea {
  background: var(--st-bg-card);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-sm);
  color: var(--st-text-primary);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: border-color var(--st-transition);
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--st-accent);
  box-shadow: 0 0 0 3px var(--st-accent-glow);
}

/* =========================================================
   SEARCH BAR
   ========================================================= */

.search-form {
  display: flex;
  gap: 8px;
}

.search-field {
  flex: 1;
}

.search-submit {
  background: var(--st-accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--st-radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background var(--st-transition);
}

.search-submit:hover {
  background: var(--st-accent-dark);
}

/* =========================================================
   DARK MODE TOGGLE
   ========================================================= */

.st-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--st-bg-card);
  border: 1px solid var(--st-border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--st-text-secondary);
  transition: all var(--st-transition);
}

.st-theme-toggle:hover {
  border-color: var(--st-border-hover);
  color: var(--st-text-primary);
}

/* =========================================================
   LIGHT MODE OVERRIDES (when toggled)
   ========================================================= */

body.st-light-mode {
  --st-bg-primary:     #FAFAFA;
  --st-bg-secondary:   #F2F2F2;
  --st-bg-card:        #FFFFFF;
  --st-bg-card-hover:  #F8F8F8;
  --st-border:         rgba(0,0,0,0.08);
  --st-border-hover:   rgba(0,0,0,0.16);
  --st-text-primary:   #111111;
  --st-text-secondary: #444444;
  --st-text-muted:     #888888;
}

body.st-light-mode .site-header,
body.st-light-mode #masthead {
  background: rgba(250,250,250,0.95);
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */

.st-accent    { color: var(--st-accent) !important; }
.st-green     { color: var(--st-green) !important; }
.st-muted     { color: var(--st-text-muted) !important; }
.st-caps      { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }
.st-divider   { border: none; border-top: 1px solid var(--st-border); margin: 32px 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
  .st-hero { padding: 48px 0 36px; }
  .st-scorecard { padding: 20px 18px; }
  .st-affiliate-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .st-scorecard__score { font-size: 2.5rem; }
  .st-comparison-table th,
  .st-comparison-table td { padding: 10px 12px; font-size: 0.8rem; }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 3px;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 99999;
  background: var(--st-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--st-radius-sm);
}

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