/*
Theme Name: EduGlass
Theme URI: https://example.com/eduglass
Author: EduGlass Team
Description: A modern clean WordPress e-learning theme built for Tutor LMS. White-based with green brand accents.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: eduglass
Tags: education, e-learning, tutor-lms, green, clean, modern, light
*/

/* ═══════════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════════ */
:root {
  /* Brand */
  --green-50:   #f0fdf4;
  --green-100:  #dcfce7;
  --green-200:  #bbf7d0;
  --green-400:  #4ade80;
  --green-500:  #22c55e;
  --green-600:  #16a34a;
  --green-700:  #15803d;

  --primary:        #1DC07A;   /* main brand green */
  --primary-dark:   #159e63;
  --primary-light:  #e8faf3;
  --primary-mid:    #4dd9a0;
  --primary-glow:   rgba(29, 192, 122, 0.18);

  /* Neutrals */
  --white:    #ffffff;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Text */
  --text-heading: #0f172a;
  --text-body:    #475569;
  --text-muted:   #94a3b8;
  --text-white:   #ffffff;

  /* Backgrounds */
  --bg-white:   #ffffff;
  --bg-light:   #f8fafc;
  --bg-green:   #f0fdf8;
  --bg-section: #f4faf8;

  /* Layout */
  --header-h:   80px;
  --container:  1240px;
  --section-py: clamp(60px, 8vw, 100px);

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.10);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.12);
  --shadow-green: 0 8px 30px rgba(29,192,122,0.25);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Nunito', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Transitions */
  --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   RESET
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--bg-white);
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ═══════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-heading);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-body); }

/* Green highlight in headings */
.text-green { color: var(--primary) !important; }
.text-white { color: var(--text-white) !important; }
.text-muted { color: var(--text-muted); font-size: 0.875rem; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 50px);
}
.section { padding: var(--section-py) 0; }
.section--gray { background: var(--bg-light); }
.section--green { background: var(--bg-green); }
.section--white { background: var(--bg-white); }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  transition: all var(--t);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(29,192,122,0.35);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover { background: var(--gray-50); color: var(--primary-dark); transform: translateY(-2px); }
.btn-sm  { padding: 9px 20px; font-size: 0.82rem; }
.btn-lg  { padding: 16px 36px; font-size: 1rem; }
.btn-icon { padding: 12px; border-radius: var(--r-full); }

/* ═══════════════════════════════════════════
   CARDS / SHADOWS
═══════════════════════════════════════════ */
.card {
  background: var(--bg-white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--t);
}
.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

/* ═══════════════════════════════════════════
   BADGE / LABEL / TAG
═══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-green  { background: var(--primary-light); color: var(--primary-dark); }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }
.badge-white  { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.3); }

/* Section label (small eyebrow text) */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════
   FORMS
═══════════════════════════════════════════ */
.form-control {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-heading);
  background: var(--bg-white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 13px 18px;
  width: 100%;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-control::placeholder { color: var(--text-muted); }
label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  display: block;
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════
   STARS
═══════════════════════════════════════════ */
.stars { display: flex; gap: 2px; color: #f59e0b; }
.stars svg { width: 14px; height: 14px; fill: currentColor; }

/* ═══════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════ */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 50px; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--t);
}
.pagination a { border: 1.5px solid var(--gray-200); color: var(--gray-600); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ═══════════════════════════════════════════
   DIVIDER
═══════════════════════════════════════════ */
.divider { height: 1px; background: var(--gray-200); margin: 0; }

/* ═══════════════════════════════════════════
   PROGRESS
═══════════════════════════════════════════ */
.progress-bar { height: 6px; background: var(--gray-100); border-radius: var(--r-full); overflow: hidden; }
.progress-bar__fill { height: 100%; border-radius: var(--r-full); background: var(--primary); transition: width 0.7s ease; }

/* ═══════════════════════════════════════════
   AVATAR
═══════════════════════════════════════════ */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-xs  { width: 28px; height: 28px; }
.avatar-sm  { width: 40px; height: 40px; }
.avatar-md  { width: 56px; height: 56px; }
.avatar-lg  { width: 80px; height: 80px; }
.avatar-xl  { width: 110px; height: 110px; }

/* ═══════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════ */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-sm { gap: 10px; }
.gap-md { gap: 20px; }
.gap-lg { gap: 32px; }
.text-center { text-align: center; }
.fw-700 { font-weight: 700; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }
.w-full { width: 100%; }
.d-block { display: block; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Screen reader */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ═══════════════════════════════════════════
   RESPONSIVE GRID
═══════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
