/*
Theme Name: SmartWealth
Theme URI: https://smartwealth.pl
Author: SmartWealth
Author URI: https://smartwealth.pl
Description: Platforma edukacji finansowej SmartWealth. Praktyczna edukacja finansowa dla pracowników.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartwealth
Tags: education, finance, courses, clean, modern
*/

/* ============================================================
   CSS Custom Properties — Design System
   ============================================================ */
:root {
  --background:       hsl(0, 0%, 100%);
  --foreground:       hsl(220, 13%, 20%);
  --primary:          hsl(218, 32%, 15%);
  --primary-fg:       hsl(0, 0%, 100%);
  --secondary:        hsl(182, 26%, 39%);
  --secondary-fg:     hsl(0, 0%, 100%);
  --accent:           hsl(46, 65%, 52%);
  --accent-fg:        hsl(218, 32%, 15%);
  --card:             hsl(0, 0%, 100%);
  --card-fg:          hsl(220, 13%, 20%);
  --muted:            hsl(220, 13%, 96%);
  --muted-fg:         hsl(220, 13%, 40%);
  --border:           hsl(220, 13%, 90%);
  --destructive:      hsl(0, 84%, 60%);
  --radius:           0.5rem;
  --navy-footer:      hsl(218, 32%, 15%);
  --gold:             hsl(46, 65%, 52%);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "DM Serif Display", serif;
  text-wrap: balance;
  color: var(--primary);
  font-style: normal;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ============================================================
   Typography Scale
   ============================================================ */
.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-5xl  { font-size: 3rem; }
.text-6xl  { font-size: 3.75rem; }
.text-7xl  { font-size: 4.5rem; }

/* ============================================================
   Layout Helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* ============================================================
   Utility Components
   ============================================================ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm  { padding: 0.375rem 0.875rem; font-size: 0.875rem; }
.btn-md  { padding: 0.625rem 1.25rem;  font-size: 1rem; }
.btn-lg  { padding: 0.875rem 2rem;     font-size: 1.125rem; }

.btn-gold {
  background-color: var(--accent);
  color: var(--accent-fg);
}
.btn-gold:hover {
  background-color: hsl(46, 65%, 47%);
  transform: translateY(-1px);
}
.btn-gold:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-fg);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}
.btn-ghost:hover { background-color: var(--muted); }

/* Tier Badges */
.tier-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.tier-badge-essential    { background-color: var(--secondary); color: white; }
.tier-badge-professional { background-color: var(--primary);   color: var(--accent); }
.tier-badge-enterprise   { background-color: var(--accent);    color: var(--primary); }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.card-elevated { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--muted) 25%, hsl(220,13%,91%) 50%, var(--muted) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* Alerts */
.alert {
  border-radius: calc(var(--radius) * 2);
  padding: 1.5rem 2rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.site-logo img { height: 3rem; width: auto; object-fit: contain; }
.site-logo .logo-text {
  font-family: "DM Serif Display", serif;
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  opacity: 0.9;
  transition: all 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  background-color: var(--muted);
  opacity: 1;
}
.main-nav .nav-cta { margin-left: 1rem; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
}
.mobile-menu-btn:hover { background: var(--muted); }
.mobile-menu-btn svg { width: 1.75rem; height: 1.75rem; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  transition: all 0.2s;
}
.mobile-nav a:hover { background: var(--muted); }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-footer);
  color: white;
  border-top: 4px solid var(--gold);
  margin-top: auto;
}
.site-footer .footer-inner { padding: 4rem 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 4fr;
  gap: 3rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand img  { height: 6rem; width: auto; object-fit: contain; margin-bottom: 1.5rem; }
.footer-tagline    { color: var(--gold); font-family: "DM Serif Display", serif; font-size: 1.25rem; margin-bottom: 1rem; }
.footer-desc       { color: rgba(255,255,255,.7); line-height: 1.6; max-width: 24rem; }

.footer-col h3     { font-family: "DM Serif Display", serif; font-size: 1.125rem; color: white; margin-bottom: 1.5rem; }
.footer-col ul li  { margin-bottom: 0.75rem; }
.footer-col ul a   { color: rgba(255,255,255,.7); transition: color .2s; font-size: 0.95rem; }
.footer-col ul a:hover { color: var(--gold); }

.footer-contact .contact-item { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: flex-start; }
.footer-contact .contact-item svg { color: var(--gold); flex-shrink: 0; margin-top: 0.125rem; width: 1.25rem; height: 1.25rem; }
.footer-contact .contact-item span { color: rgba(255,255,255,.7); font-size: 0.95rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p    { color: rgba(255,255,255,.5); font-size: 0.875rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,.5); font-size: 0.875rem; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ============================================================
   HOME PAGE
   ============================================================ */

/* Hero */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--background);
  border-bottom: 1px solid rgba(220,220,220,.5);
  padding: 5rem 0;
}
.hero-content { max-width: 56rem; margin-inline: auto; text-align: center; }
.hero-logo    { display: flex; justify-content: center; margin-bottom: 3rem; }
.hero-logo img { height: clamp(8rem, 12vw, 12rem); width: auto; object-fit: contain; }
.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-family: "DM Serif Display", serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-family: "DM Serif Display", serif;
  color: var(--secondary);
  margin-bottom: 2rem;
}
.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(30,40,60,.8);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 40rem;
  margin-inline: auto;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

/* About section */
.section-about {
  padding: 6rem 0;
  background: var(--muted);
}
.section-about .inner { max-width: 56rem; margin-inline: auto; text-align: center; }
.section-about h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}
.section-about p {
  font-size: 1.25rem;
  color: var(--muted-fg);
  line-height: 1.75;
  max-width: 65ch;
  margin-inline: auto;
}

/* Why SmartWealth */
.section-why { padding: 6rem 0; background: var(--background); }
.section-why .section-header { text-align: center; margin-bottom: 4rem; }
.section-why h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.section-why .section-sub {
  font-size: 1.25rem;
  font-family: "DM Serif Display", serif;
  color: var(--secondary);
  max-width: 40rem;
  margin-inline: auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 2.5rem;
  max-width: 80rem;
  margin-inline: auto;
}
.feature-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  transition: box-shadow .3s;
}
.feature-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.feature-icon {
  width: 4rem; height: 4rem;
  border-radius: 1rem;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.feature-icon svg { width: 2rem; height: 2rem; color: var(--accent); }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.feature-card p  { color: var(--muted-fg); font-size: 1.125rem; line-height: 1.6; }

/* Benefits */
.section-benefits {
  padding: 6rem 0;
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 90rem;
  margin-inline: auto;
}
@media (max-width: 960px) { .benefits-grid { grid-template-columns: 1fr; } }
.benefits-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  line-height: 1.2;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.benefit-item svg { color: var(--accent); flex-shrink: 0; width: 1.75rem; height: 1.75rem; margin-top: 0.125rem; }
.benefit-item span { font-size: 1.25rem; line-height: 1.5; color: var(--foreground); }
.benefits-image { position: relative; }
.benefits-image .img-shadow {
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: 1rem;
  transform: translate(1rem, 1rem);
  opacity: .5;
}
.benefits-image img {
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  width: 100%;
  border: 4px solid white;
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Knowledge CTA */
.section-knowledge {
  padding: 6rem 0;
  background: var(--background);
  text-align: center;
}
.section-knowledge .inner { max-width: 56rem; margin-inline: auto; }
.section-knowledge .icon-wrap {
  width: 4.5rem; height: 4.5rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  color: var(--accent);
}
.section-knowledge .icon-wrap svg { width: 100%; height: 100%; }
.section-knowledge h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; line-height: 1.2; }
.section-knowledge .lead {
  font-size: 1.5rem;
  font-family: "DM Serif Display", serif;
  color: var(--primary);
  margin-bottom: 2rem;
}
.section-knowledge p { font-size: 1.25rem; color: var(--muted-fg); line-height: 1.7; }

/* Contact Form */
.section-contact {
  padding: 6rem 0;
  background: var(--muted);
  border-top: 1px solid var(--border);
}
.section-contact .inner { max-width: 48rem; margin-inline: auto; }
.section-contact .section-header { text-align: center; margin-bottom: 3rem; }
.section-contact h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.section-contact .section-sub { font-size: 1.25rem; color: var(--muted-fg); }

.contact-form {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-top: 8px solid var(--primary);
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
}
.form-group { margin-bottom: 2rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.form-group label .required { color: var(--destructive); margin-left: 0.25rem; }
.form-control {
  width: 100%;
  background: var(--muted);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1.125rem;
  color: var(--foreground);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control::placeholder { color: var(--muted-fg); }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,165,70,.2);
}
textarea.form-control { resize: vertical; min-height: 9rem; }

/* ============================================================
   COURSES PAGE
   ============================================================ */
.page-courses { min-height: 100vh; display: flex; flex-direction: column; background: var(--background); }
.courses-hero {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.courses-hero h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 1rem; }
.courses-hero p  { font-size: 1.25rem; color: var(--muted-fg); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 2.5rem;
  padding: 4rem 0;
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .3s, transform .3s;
}
.course-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  transform: translateY(-4px);
}
.course-card-thumb { position: relative; overflow: hidden; }
.course-card-thumb img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  transition: transform .5s;
}
.course-card:hover .course-card-thumb img { transform: scale(1.05); }
.course-card-thumb .badge-wrap {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.course-card-body { flex: 1; padding: 2rem 1.5rem 1rem; }
.course-card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--primary);
  transition: color .3s;
}
.course-card:hover .course-card-body h3 { color: var(--secondary); }
.course-card-body p { color: var(--muted-fg); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-card-footer { padding: 0 1.5rem 1.5rem; }

.empty-courses {
  text-align: center;
  padding: 6rem 2rem;
  background: var(--card);
  border-radius: 1.5rem;
  border: 2px dashed var(--border);
}
.empty-icon {
  width: 6rem; height: 6rem;
  border-radius: 50%;
  background: var(--muted);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.empty-icon svg { width: 3rem; height: 3rem; color: var(--muted-fg); }
.empty-courses h2 { font-size: 2rem; margin-bottom: 1rem; }
.empty-courses p  { color: var(--muted-fg); font-size: 1.125rem; max-width: 28rem; margin-inline: auto; }

/* ============================================================
   COURSE DETAIL PAGE
   ============================================================ */
.page-course-detail {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
}
.course-detail-inner {
  flex: 1;
  padding: 3rem 0;
}
.course-detail-container { max-width: 56rem; margin-inline: auto; }
.course-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background .2s;
}
.course-back-btn:hover { background: var(--muted); }
.course-back-btn svg { width: 1rem; height: 1rem; }

.course-header { margin-bottom: 1.5rem; }
.course-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.no-access-card {
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  padding: 3rem;
  text-align: center;
  margin-bottom: 2rem;
}
.no-access-icon {
  width: 5rem; height: 5rem;
  border-radius: 50%;
  background: var(--muted);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.no-access-icon svg { width: 2.25rem; height: 2.25rem; color: var(--accent); }
.no-access-card h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.no-access-card p  { font-size: 1.125rem; color: var(--muted-fg); margin-bottom: 2rem; max-width: 32rem; margin-inline: auto; }

.video-wrapper {
  aspect-ratio: 16/9;
  background: black;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  margin-bottom: 2rem;
}
.video-wrapper iframe,
.video-wrapper video { width: 100%; height: 100%; }

.course-description-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  margin-bottom: 2rem;
}
.course-description-card h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.course-description-card p  { font-size: 1.125rem; line-height: 1.7; }

/* ============================================================
   DASHBOARD PAGE
   ============================================================ */
.page-dashboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--muted);
}
.dashboard-inner { flex: 1; padding: 3rem 0; }
.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.dashboard-header .dashboard-logo img { height: 3.5rem; width: auto; margin-bottom: 1.5rem; }
.dashboard-header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 0.5rem;
}
.dashboard-header .sub {
  font-size: 1.25rem;
  font-family: "DM Serif Display", serif;
  color: var(--secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.stat-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}
.stat-icon {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 1.5rem; height: 1.5rem; }
.stat-number { font-size: 3rem; font-family: "DM Serif Display", serif; font-weight: 700; color: var(--primary); }
.stat-unit   { font-size: 1.125rem; color: var(--muted-fg); margin-left: 0.5rem; }
.stat-text   { font-size: 1.125rem; color: var(--muted-fg); margin-top: 0.5rem; }

.cta-banner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 12rem;
  height: 12rem;
  background: var(--accent);
  border-radius: 50%;
  opacity: .1;
  filter: blur(2rem);
}
.cta-banner-inner {
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-banner p  { font-size: 1.125rem; color: var(--muted-fg); max-width: 36rem; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.page-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--muted);
}
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}
.login-card {
  width: 100%;
  max-width: 28rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.login-card-header {
  background: hsl(220, 87%, 8%);
  padding: 2rem;
  text-align: center;
  border-bottom: 4px solid hsl(43, 72%, 50%);
}
.login-card-header img { height: 5rem; margin-inline: auto; margin-bottom: 1rem; }
.login-card-header h1 { font-size: 1.5rem; color: white; font-weight: 700; }
.login-card-body { background: white; padding: 2rem; }
.login-notice {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(0,0%,90%);
  text-align: center;
  color: hsl(220, 20%, 40%);
  font-size: 0.875rem;
}

/* ============================================================
   PAGE: 404 / Not Found
   ============================================================ */
.page-not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}
.not-found-icon {
  width: 6rem; height: 6rem;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.not-found-icon svg { width: 3rem; height: 3rem; color: var(--muted-fg); }
.not-found-content h1 { font-size: 2rem; margin-bottom: 1rem; }
.not-found-content p  { color: var(--muted-fg); margin-bottom: 2rem; }

/* ============================================================
   WordPress Core Overrides
   ============================================================ */
.wp-block-image img { border-radius: var(--radius); }
.aligncenter { display: block; margin-inline: auto; }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================================
   Admin Bar Offset
   ============================================================ */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ============================================================
   Transitions & Animations
   ============================================================ */
.fade-in { animation: fadeIn .6s ease-out both; }
@keyframes fadeIn { from { opacity:0; transform:translateY(1.5rem); } to { opacity:1; transform:none; } }
.fade-in-1 { animation-delay: .1s; }
.fade-in-2 { animation-delay: .2s; }
.fade-in-3 { animation-delay: .3s; }
.fade-in-4 { animation-delay: .4s; }
