/* ═══════════════════════════════════════════════════════════
   PSC Exam Crackers — Main Stylesheet
   ═══════════════════════════════════════════════════════════ */

:root {
  --psc-primary:   #4f46e5;
  --psc-primary-d: #3730a3;
  --psc-accent:    #f59e0b;
  --psc-success:   #10b981;
  --psc-danger:    #ef4444;
  --psc-dark:      #1e1b4b;
  --psc-dark2:     #0f0c29;
  --psc-bg:        #f8fafc;
  --psc-card:      #ffffff;
  --psc-border:    #e2e8f0;
  --psc-text:      #1e293b;
  --psc-muted:     #64748b;
  --psc-radius:    12px;
  --psc-shadow:    0 2px 16px rgba(0,0,0,.08);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--psc-text);
  background: var(--psc-bg);
  line-height: 1.45;
  margin: 0;
}

img { max-width: 100%; height: auto; }
a   { color: var(--psc-primary); text-decoration: none; }
a:hover { color: var(--psc-primary-d); }

/* ── Generic Buttons ────────────────────────────────────────────────────────── */
.psc-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.5rem; border-radius: 9px;
  font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none !important; transition: .18s; white-space: nowrap;
}
.psc-btn-lg { padding: .8rem 2rem; font-size: 1.05rem; }

.psc-btn-primary {
  background: var(--psc-primary); color: #fff !important; border-color: var(--psc-primary);
}
.psc-btn-primary:hover {
  background: var(--psc-primary-d); border-color: var(--psc-primary-d); color: #fff !important;
}
.psc-btn-outline-light {
  background: transparent; color: #fff !important; border-color: rgba(255,255,255,.65);
}
.psc-btn-outline-light:hover {
  background: rgba(255,255,255,.18); color: #fff !important;
}
.psc-btn-outline {
  background: transparent; color: var(--psc-primary); border-color: var(--psc-primary);
}
.psc-btn-outline:hover { background: #ede9fe; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */
.psc-navbar {
  background: var(--psc-dark) !important;
  padding: .7rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.psc-brand { display: flex; align-items: center; gap: .45rem; text-decoration: none !important; }
.psc-brand-icon { font-size: 1.35rem; line-height: 1; }
.psc-brand-text { font-size: 1.1rem; font-weight: 800; color: #fff !important; letter-spacing: -.2px; }

.psc-toggler {
  border: 1.5px solid rgba(255,255,255,.35);
  background: transparent; color: #fff;
  padding: .3rem .55rem; border-radius: 7px; font-size: 1.3rem; line-height: 1;
}
.psc-toggler:focus { box-shadow: none; outline: none; }

.psc-navbar .nav-link {
  color: #c7d2fe !important; font-weight: 500;
  padding: .45rem 1rem !important; border-radius: 7px; transition: .15s;
}
.psc-navbar .nav-link:hover,
.psc-navbar .nav-link.active { color: #fff !important; background: rgba(255,255,255,.08); }

/* ── Auth area ──────────────────────────────────────────────────────────────── */
.psc-nav-auth { margin-left: auto; padding-left: 1rem; }

/* Cache-safe auth nav: default to logged-out; the head script adds
   html.psc-auth when our readable cookie is present (see header.php). */
.psc-nav-in  { display: none; align-items: center; gap: .5rem; }
.psc-nav-out { display: flex; align-items: center; gap: .5rem; }
html.psc-auth .psc-nav-in  { display: flex; }
html.psc-auth .psc-nav-out { display: none; }

/* Nav auth button base */
.psc-nav-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .38rem 1rem; border-radius: 8px;
  font-size: .875rem; font-weight: 600; text-decoration: none !important;
  transition: .15s; white-space: nowrap; line-height: 1.4;
}
.psc-nav-btn-ghost {
  color: #c7d2fe; border: 1.5px solid rgba(199,210,254,.4); background: transparent;
}
.psc-nav-btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }

.psc-nav-btn-accent {
  background: var(--psc-accent); color: #1a1033 !important; border: 1.5px solid var(--psc-accent);
}
.psc-nav-btn-accent:hover { background: #d97706; border-color: #d97706; color: #fff !important; }

.psc-nav-btn-logout {
  background: rgba(239,68,68,.15); color: #fca5a5 !important;
  border: 1.5px solid rgba(239,68,68,.3);
}
.psc-nav-btn-logout:hover { background: rgba(239,68,68,.3); color: #fff !important; }

.psc-nav-username {
  display: flex; align-items: center; gap: .4rem;
  color: #c7d2fe !important; font-size: .875rem; font-weight: 600;
  text-decoration: none !important; padding: .3rem .5rem; border-radius: 7px; transition: .15s;
  max-width: 160px;
}
.psc-nav-username span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psc-nav-username:hover { color: #fff !important; background: rgba(255,255,255,.08); }
.psc-nav-username .bi { font-size: 1.1rem; flex-shrink: 0; }

/* Mobile collapsed nav */
@media (max-width: 991.98px) {
  .psc-nav-auth { margin-left: 0; padding-left: 0; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.1); }
  .psc-nav-in, .psc-nav-out { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.psc-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f0c29 0%, #1e1b4b 40%, #302b63 70%, #4f46e5 100%);
  padding: 5.5rem 0 5rem;
  color: #fff;
}
.psc-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 10% 40%, rgba(99,102,241,.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(245,158,11,.12) 0%, transparent 60%);
}

.psc-hero-content { position: relative; z-index: 2; }

.psc-hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px; padding: .3rem 1rem;
  font-size: .8rem; font-weight: 600; color: #fde68a;
  margin-bottom: 1.25rem;
}
.psc-hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; line-height: 1.12;
  margin-bottom: 1rem; color: #fff; letter-spacing: -.5px;
}
.psc-hero-highlight {
  background: linear-gradient(100deg, #f59e0b, #fbbf24, #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.psc-hero-subtitle {
  font-size: 1.05rem; color: #c7d2fe; line-height: 1.55;
  margin-bottom: 2rem; max-width: 460px;
}
.psc-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Hero floating illustration */
.psc-hero-illustration {
  position: relative; height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.psc-hero-circle {
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; z-index: 1;
  animation: float1 4s ease-in-out infinite;
}
.psc-hero-card {
  position: absolute;
  background: rgba(255,255,255,.12); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 14px;
  padding: .9rem 1.1rem; display: flex; align-items: center; gap: .7rem; color: #fff;
  min-width: 160px; z-index: 2;
}
.psc-hero-card strong { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.psc-hero-card small  { font-size: .75rem; color: #c7d2fe; }
.psc-hcard-icon { font-size: 1.6rem; line-height: 1; }
.psc-hcard-1 { top: 20px; left: 0;     animation: float2 4.5s ease-in-out infinite; }
.psc-hcard-2 { top: 120px; right: 0;   animation: float1 5s ease-in-out infinite; }
.psc-hcard-3 { bottom: 20px; left: 30px; animation: float2 3.8s ease-in-out infinite; }

@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* ══════════════════════════════════════════════════════════
   PREMIUM STATS
   ══════════════════════════════════════════════════════════ */
.psc-stats-section {
  background: var(--psc-dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 2.5rem 0;
}

.psc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  overflow: hidden;
}

.psc-stat-item {
  background: rgba(255,255,255,.03);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: background .2s;
}
.psc-stat-item:hover { background: rgba(255,255,255,.07); }

.psc-stat-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(79,70,229,.2); border: 1px solid rgba(79,70,229,.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem; font-size: 1.2rem;
  color: #a5b4fc;
}
.psc-stat-icon-wrap.teal   { background: rgba(8,145,178,.2); border-color:rgba(8,145,178,.3); color: #67e8f9; }
.psc-stat-icon-wrap.green  { background: rgba(5,150,105,.2); border-color:rgba(5,150,105,.3); color: #6ee7b7; }
.psc-stat-icon-wrap.amber  { background: rgba(217,119,6,.2); border-color:rgba(217,119,6,.3); color: #fcd34d; }

.psc-stat-number {
  font-size: 2rem; font-weight: 900; color: #fff; line-height: 1;
  margin-bottom: .25rem; letter-spacing: -.5px;
}
.psc-stat-label {
  font-size: .75rem; color: #94a3b8; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
}

@media (max-width: 575px) {
  .psc-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════ */
.psc-section     { padding: 5rem 0; }
.psc-section-alt { background: #fff; }

.psc-section-head { text-align: center; margin-bottom: 3rem; }
.psc-section-title { font-size: 1.9rem; font-weight: 800; line-height: 1.2; margin-bottom: .5rem; color: var(--psc-text); }
.psc-section-sub  { color: var(--psc-muted); font-size: 1rem; margin: 0; }

.psc-badge-pill {
  display: inline-block; background: #ede9fe; color: var(--psc-primary);
  border-radius: 99px; padding: .28rem .9rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .03em;
}

/* ── Category cards ─────────────────────────────────────────────────────────── */
.psc-cat-card {
  display: block; padding: 1.4rem 1.1rem;
  background: var(--cat-bg, #f8fafc);
  border-radius: var(--psc-radius);
  border: 2px solid transparent;
  text-decoration: none !important; transition: .2s; height: 100%;
}
.psc-cat-card:hover {
  border-color: var(--cat-color, var(--psc-primary));
  transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.psc-cat-icon { font-size: 1.9rem; display: block; margin-bottom: .5rem; line-height: 1; }
.psc-cat-name { font-size: .95rem; font-weight: 700; color: var(--cat-color, var(--psc-text)); margin-bottom: .2rem; }
.psc-cat-desc { font-size: .78rem; color: var(--psc-muted); margin: 0; }

/* ── Step cards ─────────────────────────────────────────────────────────────── */
.psc-step-card {
  text-align: center; background: var(--psc-card);
  border-radius: var(--psc-radius); padding: 2.5rem 1.5rem 2rem;
  box-shadow: var(--psc-shadow); position: relative; height: 100%;
  border: 1px solid var(--psc-border);
}
.psc-step-num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--psc-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; box-shadow: 0 4px 12px rgba(79,70,229,.4);
}
.psc-step-icon { font-size: 2.2rem; color: var(--psc-primary); margin-bottom: .9rem; }
.psc-step-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.psc-step-desc  { color: var(--psc-muted); font-size: .875rem; margin: 0; }

/* ── Feature list ───────────────────────────────────────────────────────────── */
.psc-feature-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.75rem; }
.psc-feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.psc-feature-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: #ede9fe; color: var(--psc-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.psc-feature-item strong { display: block; font-weight: 700; margin-bottom: .15rem; color: var(--psc-text); }
.psc-feature-item p { margin: 0; font-size: .875rem; color: var(--psc-muted); }

/* ── Browser mockup ─────────────────────────────────────────────────────────── */
.psc-mockup {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.15); border: 1px solid var(--psc-border);
}
.psc-mockup-bar {
  background: #f1f5f9; padding: .75rem 1rem;
  display: flex; align-items: center; gap: .4rem;
}
.psc-dot { width: 11px; height: 11px; border-radius: 50%; }
.psc-dot.red    { background: #ef4444; }
.psc-dot.yellow { background: #f59e0b; }
.psc-dot.green  { background: #10b981; }
.psc-mockup-url {
  background: #fff; border-radius: 99px;
  padding: .2rem .9rem; font-size: .78rem; color: var(--psc-muted); margin-left: .5rem;
}
.psc-mockup-body { background: #fff; padding: 1.5rem; }
.psc-mockup-q    { font-weight: 700; font-size: .95rem; margin-bottom: 1rem; color: var(--psc-text); }
.psc-mockup-opt  {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .9rem; border: 2px solid var(--psc-border);
  border-radius: 8px; margin-bottom: .5rem; font-size: .875rem;
}
.psc-mockup-opt.correct { border-color: var(--psc-success); background: #f0fdf4; color: #166534; font-weight: 600; }
.psc-mockup-letter {
  width: 22px; height: 22px; border-radius: 50%; background: #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; flex-shrink: 0;
}
.psc-mockup-opt.correct .psc-mockup-letter { background: var(--psc-success); color: #fff; }
.psc-mockup-foot { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--psc-border); }

/* ── Blog cards ─────────────────────────────────────────────────────────────── */
.psc-post-card {
  background: var(--psc-card); border-radius: var(--psc-radius);
  box-shadow: var(--psc-shadow); overflow: hidden; transition: .2s; height: 100%;
  border: 1px solid var(--psc-border);
}
.psc-post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.psc-post-thumb img { width: 100%; height: 190px; object-fit: cover; display: block; }
.psc-post-body    { padding: 1.25rem; }
.psc-post-cat     { font-size: .72rem; font-weight: 700; color: var(--psc-primary); text-transform: uppercase; letter-spacing: .06em; }
.psc-post-title   { font-size: 1rem; font-weight: 700; margin: .4rem 0 .5rem; line-height: 1.35; }
.psc-post-title a { color: var(--psc-text); }
.psc-post-title a:hover { color: var(--psc-primary); }
.psc-post-excerpt { font-size: .875rem; color: var(--psc-muted); margin-bottom: 1rem; }
.psc-post-meta  { display: flex; justify-content: space-between; font-size: .8rem; color: var(--psc-muted); }
.psc-post-meta a { color: var(--psc-primary); font-weight: 600; }

/* ── CTA ────────────────────────────────────────────────────────────────────── */
.psc-cta {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
  padding: 5rem 0; color: #fff; text-align: center;
}
.psc-cta-title { font-size: 2.1rem; font-weight: 800; margin-bottom: .75rem; }
.psc-cta-sub   { color: #c7d2fe; font-size: 1rem; margin-bottom: 2rem; }
.psc-cta-btns  { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Label badge ────────────────────────────────────────────────────────────── */
.psc-label-badge {
  display: inline-block; background: #ede9fe; color: var(--psc-primary);
  border-radius: 99px; padding: .28rem .9rem; font-size: .8rem; font-weight: 700;
}

/* ── 404 ────────────────────────────────────────────────────────────────────── */
.psc-404-wrap  { text-align: center; padding: 5rem 1rem; }
.psc-404-code  { font-size: 8rem; font-weight: 900; color: var(--psc-primary); line-height: 1; }
.psc-404-title { font-size: 1.75rem; font-weight: 700; margin: .5rem 0 .75rem; }
.psc-404-desc  { color: var(--psc-muted); margin-bottom: 2rem; }
.psc-404-btns  { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Page template ──────────────────────────────────────────────────────────── */
.psc-page-wrap    { min-height: 60vh; padding: 3.5rem 0; }
.psc-page-title   { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: .25rem; }
.psc-page-lead    { color: var(--psc-muted); font-size: 1rem; }
.psc-page-content { margin-top: 1.5rem; font-size: 1rem; line-height: 1.6; }
.psc-page-content p { margin-bottom: 1rem; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.psc-footer     { background: var(--psc-dark); color: #94a3b8; }
.psc-footer-top { padding: 4rem 0 3rem; }

.psc-footer-brand { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.psc-footer-brand .psc-brand-text { color: #fff; font-size: 1rem; }
.psc-footer-desc { color: #64748b; font-size: .875rem; line-height: 1.55; }

.psc-social-row { display: flex; gap: .5rem; margin-top: 1.1rem; }
.psc-social {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.06); color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; transition: .15s;
}
.psc-social:hover { background: var(--psc-primary); color: #fff; }

.footer-widget-title { color: #e2e8f0; font-size: .9rem; font-weight: 700; margin-bottom: .9rem; }
.psc-footer-links { list-style: none; margin: 0; padding: 0; }
.psc-footer-links li { margin-bottom: .45rem; }
.psc-footer-links a { color: #64748b; font-size: .875rem; transition: .15s; }
.psc-footer-links a:hover { color: #e2e8f0; }

.psc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1rem 0; font-size: .8rem; color: #475569;
}
.psc-footer-bottom a { color: #475569; }
.psc-footer-bottom a:hover { color: #fff; }

/* ── Widgets ────────────────────────────────────────────────────────────────── */
.widget-block { background: var(--psc-card); border-radius: var(--psc-radius); padding: 1.25rem; box-shadow: var(--psc-shadow); }
.widget-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--psc-border); }

/* ── Single post ────────────────────────────────────────────────────────────── */
.psc-post-content { font-size: 1.05rem; line-height: 1.65; }
.psc-post-content h2,.psc-post-content h3 { margin-top: 2rem; font-weight: 700; }
.psc-post-content p { margin-bottom: 1.15rem; }
.psc-post-content blockquote {
  border-left: 4px solid var(--psc-primary); background: #f8fafc;
  padding: 1rem 1.5rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--psc-muted);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .psc-hero    { padding: 4rem 0 3.5rem; }
  .psc-section { padding: 3.5rem 0; }
  .psc-cta-title { font-size: 1.6rem; }
  .psc-stat-number { font-size: 1.6rem; }
}
