/* ==========================================================================
   Eduroom — qlobal tipografiya
   Plus Jakarta Sans · oxunaqlılıq · vahid miqyas
   ========================================================================== */

*, *::before, *::after {
  font-family: inherit;
}

html {
  font-family: var(--font-body);
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  hanging-punctuation: first last;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  color: var(--color-text);
  font-variant-numeric: proportional-nums;
}

::selection {
  background: rgba(0, 143, 84, 0.18);
  color: var(--color-text);
}

/* --- Başlıqlar --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  margin: 0 0 0.65em;
  text-wrap: balance;
}

h1 {
  font-size: var(--font-3xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--tracking-tighter);
}

h2 {
  font-size: var(--font-xl);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--font-lg);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: var(--font-md);
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: var(--font-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

h6 {
  font-size: var(--font-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- Mətn blokları --- */
p {
  margin: 0 0 0.875em;
  line-height: var(--leading-relaxed);
  color: inherit;
}

p:last-child {
  margin-bottom: 0;
  color: inherit;
}

small {
  font-size: var(--font-sm);
  line-height: var(--leading-snug);
}

strong, b {
  font-weight: var(--font-weight-bold);
}

em, i:not([class*="fa-"]) {
  font-style: italic;
}

sub, sup {
  font-size: 0.72em;
  line-height: 0;
}

/* --- Linklər --- */
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover);
}

a:focus-visible {
  outline: 2px solid rgba(0, 143, 84, 0.45);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Siyahılar --- */
ul, ol {
  line-height: var(--leading-relaxed);
}

li + li {
  margin-top: 0.35em;
}

/* --- Məqalə / DLE məzmunu --- */
.post-text,
.full-story,
.fullstory-article .full-story,
.material-page .full-story,
.material-page .material-description,
.static-page-content {
  font-size: var(--font-base);
  line-height: var(--leading-prose);
  color: var(--color-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-text p,
.full-story p,
.material-page .full-story p {
  margin-bottom: 1em;
  line-height: inherit;
}

.post-text h2,
.full-story h2,
.material-page .full-story h2 {
  font-size: var(--font-xl);
  font-weight: var(--font-weight-bold);
  margin: 1.5em 0 0.65em;
  letter-spacing: var(--tracking-tight);
}

.post-text h3,
.full-story h3,
.material-page .full-story h3 {
  font-size: var(--font-lg);
  margin: 1.25em 0 0.5em;
}

.post-text ul,
.post-text ol,
.full-story ul,
.full-story ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.post-text blockquote,
.full-story blockquote {
  margin: 1.25em 0;
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--color-primary);
  background: rgba(0, 143, 84, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

.post-text code,
.full-story code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.06);
}

.post-text pre,
.full-story pre {
  font-family: var(--font-mono);
  font-size: var(--font-sm);
  line-height: var(--leading-relaxed);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
  margin: 1em 0;
}

/* --- UI etiketləri --- */
.text-muted,
.meta-text,
.content-foot,
.material-meta {
  color: var(--color-text-muted);
}

.text-label {
  font-size: var(--font-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.tabular-nums,
.material-views,
.content-foot span,
.home-popular-meta {
  font-variant-numeric: tabular-nums;
}

/* --- Kart başlıqları --- */
.material-grid .content-details h2 {
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-normal);
}

.material-title,
.article-title {
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--tracking-tighter);
  text-shadow: var(--text-shadow-sm);
}

/* --- Bölmə başlıqları --- */
.home-section-title,
.home-popular-title,
.material-section-title,
.inner-speedbar-trail,
.auth-card-title {
  letter-spacing: var(--tracking-tight);
}

.home-section-title {
  font-weight: var(--font-weight-bold);
}

/* --- Tünd / rəngli fon üzərində --- */
.site-header,
.site-header a,
.site-footer,
.site-footer a:not(.footer-link-muted) {
  text-shadow: var(--text-shadow-on-dark);
}

.home-hero .hero-slide-title,
.hero-slide-title {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  letter-spacing: var(--tracking-tight);
}

.footer-cta-text strong {
  text-shadow: var(--text-shadow-on-dark);
}

/* --- Form elementləri --- */
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.85;
}

/* --- DLE mesaj / info --- */
.message-info,
.alert,
.basealert {
  font-size: var(--font-sm);
  line-height: var(--leading-relaxed);
}

/* --- Şərhlər --- */
.comment .com_user .name {
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-normal);
}

.comment .text {
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

/* --- Responsiv oxunaqlılıq --- */
@media (min-width: 768px) {
  body {
    font-size: var(--font-base);
  }

  h1 {
    font-size: var(--font-4xl);
  }
}

@media (max-width: 767px) {
  body {
    letter-spacing: 0;
  }

  h1, h2, h3 {
    text-wrap: pretty;
  }
}
