/* ==========================================================================
   آکادمی مشاوره کنکور نسل Z - ریست، فونت‌ها و استایل‌های پایه (Base CSS)
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

html {
  direction: rtl;
  font-family: var(--font-primary);
  background-color: var(--bg-dark-900);
  color: var(--text-main);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
  line-height: 1.7;
  font-size: 1rem;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 215, 0, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(79, 172, 254, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Selection Color */
::selection {
  background: var(--accent-gold-500);
  color: var(--bg-dark-900);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-900);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark-900);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-500);
}

/* Typography Rules */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

a {
  color: var(--accent-gold-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-gold-300);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Accessible custom focus styling for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent-gold-500) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.25) !important;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Utility Layout Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  position: relative;
}

.text-center { text-align: center; }
.text-gold { color: var(--accent-gold-500); }
.text-muted { color: var(--text-muted); }
.gold-gradient-text {
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Header Shared Utility */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto var(--space-2xl) auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--accent-gold-500);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}
