/* Edubaza.az - ümumi sayt stili (sadə, ağ tonlar) */

:root {
  --white: #ffffff;
  --bg: #f7f8fa;
  --border: #e7e9ec;
  --text: #1f2430;
  --text-muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eaf1ff;
  --success: #16a34a;
  --success-light: #eafaf0;
  --danger: #dc2626;
  --danger-light: #fdecec;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(20, 25, 40, 0.06);
  --shadow-lg: 0 10px 30px rgba(20, 25, 40, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--primary); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
}
.main-nav a.active,
.main-nav a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-outline { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg); }

.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-danger { background: var(--danger); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-art {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
}

.hero-art .grade-pill {
  display: inline-block;
  background: var(--bg);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  margin: 4px;
  color: var(--text);
  border: 1px solid var(--border);
}

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: 30px; margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--text-muted); font-size: 16px; margin: 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  font-weight: 700;
}
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* Grade / plan cards */
.plan-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.plan-card .grade-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
}
.plan-card .price {
  font-size: 26px;
  font-weight: 800;
}
.plan-card .price small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.plan-card ul { list-style: none; padding: 0; margin: 0; text-align: right; color: var(--text-muted); font-size: 14px; }
.plan-card ul li { padding: 5px 0; }

/* Tables of subjects/exams */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter-bar a, .filter-bar button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.filter-bar a.active, .filter-bar button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.list-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.list-item .meta { color: var(--text-muted); font-size: 13.5px; margin-top: 4px; }
.tag {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 6px;
}

/* Dərs filtrləri (sinif/fənn seçimi + axtarış) */
.lesson-filters {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 30px;
}
.lesson-filters-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr auto;
  gap: 14px;
  align-items: end;
}
.lesson-filters .form-group { margin-bottom: 0; }
.lesson-filters-submit .btn { white-space: nowrap; }

/* Dərs kartları */
.lesson-grid { align-items: stretch; }
.lesson-card {
  display: block;
  color: var(--text);
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.lesson-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: var(--text);
}
.lesson-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 14px;
}

/* Video embed (responsive 16:9) */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lesson-lock {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 50px 24px;
  text-align: center;
}
.lesson-lock-icon { font-size: 40px; margin-bottom: 10px; }
.lesson-lock .btn { margin: 4px; }

/* Forms */
.form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 460px;
  margin: 0 auto;
}
.form-box.wide { max-width: 640px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
textarea { resize: vertical; min-height: 120px; }

.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.form-foot { text-align: center; margin-top: 20px; font-size: 14.5px; color: var(--text-muted); }

/* Alerts */
.alert {
  padding: 13px 16px;
  border-radius: 9px;
  font-size: 14.5px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-light); color: #14532d; border-color: #bbf0cc; }
.alert-error { background: var(--danger-light); color: #7f1d1d; border-color: #f7c8c8; }
.alert-info { background: var(--primary-light); color: #1e3a8a; border-color: #cddcfb; }

/* Status badges */
.badge { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; display: inline-block; }
.badge-active { background: var(--success-light); color: #166534; }
.badge-pending { background: #fff7e6; color: #92600a; }
.badge-expired, .badge-failed, .badge-cancelled { background: var(--danger-light); color: #991b1b; }

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 { font-size: 15px; margin: 0 0 14px; }
.footer-grid p, .footer-grid a { color: var(--text-muted); font-size: 14.5px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
  text-align: center;
}
.page-hero h1 { font-size: 32px; margin: 0 0 10px; font-weight: 800; }
.page-hero p { color: var(--text-muted); margin: 0; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .lesson-filters-row { grid-template-columns: 1fr 1fr; }
  .lesson-search { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .main-nav { position: fixed; top: 66px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; padding: 16px 20px; gap: 14px; display: none; z-index: 90; max-height: calc(100vh - 66px); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 10px 0; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 44px 0; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 16px; }
  .hero-actions .btn, .hero-actions { width: 100%; }
  .hero-actions { flex-direction: column; }
  .header-actions .btn span.txt { display: none; }
  .header-actions .btn { padding: 9px 14px; }
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 24px; }
  .form-box { padding: 24px 20px; }
  .lesson-filters-row { grid-template-columns: 1fr; }
  .lesson-filters-submit { width: 100%; }
  .list-item { flex-direction: column; align-items: flex-start; }
  .list-item > div:last-child { width: 100%; }
  .list-item .btn { width: 100%; }
  .filter-bar { gap: 8px; }
  .filter-bar a, .filter-bar button { padding: 7px 13px; font-size: 13px; }
}

@media (max-width: 420px) {
  .header-inner .logo { font-size: 19px; }
}
