/*
Theme Name: PastPapers Pro
Theme URI: https://yoursite.co.za
Author: H. Nyalusi
Author URI: https://yoursite.co.za
Description: A high-performance, SEO-optimised WordPress theme for past exam paper archives. Built for speed, organic rankings, and student UX.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pastpapers-pro
Tags: education, custom-menu, custom-logo, featured-images, full-width-template, sticky-post, translation-ready
*/

/* === Import Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
============================================================ */
:root {
  /* Brand Colors */
  --clr-primary:       #0b4f8a;
  --clr-primary-dark:  #083968;
  --clr-primary-light: #1a6bb5;
  --clr-accent:        #00c2a8;
  --clr-accent-dark:   #00a08a;
  --clr-accent-light:  #e0faf6;

  /* Neutrals */
  --clr-dark:          #0f172a;
  --clr-text:          #1e293b;
  --clr-text-muted:    #64748b;
  --clr-border:        #e2e8f0;
  --clr-border-light:  #f1f5f9;
  --clr-bg:            #f8fafc;
  --clr-bg-white:      #ffffff;

  /* Subject Category Colors */
  --clr-cat-1: #e74c3c; /* Mathematics */
  --clr-cat-2: #2980b9; /* Sciences */
  --clr-cat-3: #27ae60; /* Languages */
  --clr-cat-4: #8e44ad; /* Commerce */
  --clr-cat-5: #e67e22; /* Technology */
  --clr-cat-6: #16a085; /* Humanities */
  --clr-cat-7: #c0392b; /* Arts */
  --clr-cat-8: #2c3e50; /* Other */

  /* Typography */
  --font-display:  'Sora', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max:    1280px;
  --container-wide:   1440px;
  --container-narrow: 860px;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.14);
  --shadow-accent: 0 8px 24px rgba(0,194,168,.25);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --transition: 220ms var(--ease-out);

  /* Header */
  --header-height: 68px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--clr-primary-dark); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-dark);
}

button, input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   UTILITY CLASSES
============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--new {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge--free {
  background: var(--clr-accent-light);
  color: var(--clr-accent-dark);
  border: 1px solid rgba(0,194,168,.2);
}

.badge--count {
  background: var(--clr-border-light);
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
}
