/* ===================================================================
   صفحه‌ی رزومه‌ی مدرس — استایل‌شیت مستقل، بدون ارتباط با دیزاین سایت
   =================================================================== */

:root {
  --r-bg:        #0E0E10;
  --r-surface:   #16161A;
  --r-surface-2: #1C1C20;
  --r-border:    #29292E;
  --r-text:      #EDEDEE;
  --r-text-2:    #B7B7BC;
  --r-text-muted:#84848A;
  --r-text-dim:  #59595E;
  --r-accent:    #C9A876;
  --r-accent-soft: rgba(201, 168, 118, .12);

  --r-font: 'Vazirmatn', system-ui, sans-serif;
  --r-radius: 8px;
  --r-container: 1080px;
}

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

html { scroll-behavior: smooth; font-size: 18px; }

body {
  background: var(--r-bg);
  color: var(--r-text-2);
  font-family: var(--r-font);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--r-accent);
  outline-offset: 3px;
}

.r-container {
  width: 100%;
  max-width: var(--r-container);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------- نوار بالا --------------------------- */
.r-topbar {
  padding: 22px 0;
  border-bottom: 1px solid var(--r-border);
}
.r-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.r-topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--r-text);
}
.r-topbar__brand img { width: 26px; height: 26px; opacity: .9; }
.r-topbar__links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.r-topbar__back {
  font-size: .85rem;
  color: var(--r-text-muted);
  transition: color .2s ease;
}
.r-topbar__back:hover { color: var(--r-accent); }

/* --------------------------- بدنه‌ی رزومه --------------------------- */
.r-resume {
  padding: 56px 0 90px;
}

.r-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* --------------------------- سایدبار --------------------------- */
.r-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.r-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--r-border);
  filter: grayscale(.15);
}

.r-identity__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--r-text);
  margin-top: 20px;
  margin-bottom: 6px;
}

.r-identity__title {
  font-size: .92rem;
  color: var(--r-accent);
  font-weight: 600;
  line-height: 1.6;
}

.r-block { display: flex; flex-direction: column; gap: 14px; }

.r-block__heading {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--r-text-muted);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--r-border);
}

.r-contact { display: flex; flex-direction: column; gap: 10px; }
.r-contact__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--r-text-2);
  padding: 9px 12px;
  border-radius: var(--r-radius);
  border: 1px solid var(--r-border);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.r-contact__link:hover {
  border-color: var(--r-accent);
  color: var(--r-text);
  background: var(--r-accent-soft);
}
.r-contact__link svg { color: var(--r-accent); flex-shrink: 0; }

.r-facts { display: flex; flex-direction: column; gap: 12px; }
.r-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: .86rem;
}
.r-fact__label { color: var(--r-text-muted); }
.r-fact__value { color: var(--r-text); font-weight: 700; }

.r-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.r-tag {
  font-size: .78rem;
  color: var(--r-text-2);
  border: 1px solid var(--r-border);
  border-radius: 100px;
  padding: 5px 13px;
}

/* --------------------------- محتوای اصلی --------------------------- */
.r-main { display: flex; flex-direction: column; gap: 44px; }

.r-section__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--r-text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--r-border);
}

.r-about p {
  font-size: .96rem;
  color: var(--r-text-2);
}

/* ---------- تجربه‌ی کاری ---------- */
.r-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.r-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 12px;
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  transition: border-color .2s ease, background .2s ease;
}
.r-entry:hover {
  border-color: var(--r-accent);
  background: var(--r-accent-soft);
}

.r-entry__org {
  font-size: .92rem;
  font-weight: 700;
  color: var(--r-text);
}

@media (min-width: 600px) {
  .r-timeline { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- کتاب‌ها ---------- */
.r-books { display: flex; flex-direction: column; gap: 18px; }
.r-book {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
}
.r-book__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-radius);
  background: var(--r-accent-soft);
  color: var(--r-accent);
}
.r-book__title { color: var(--r-text); font-weight: 700; font-size: .94rem; }

/* ---------- فلسفه ---------- */
.r-quote {
  border-inline-start: 2px solid var(--r-accent);
  padding-inline-start: 20px;
}
.r-quote p {
  font-size: 1.02rem;
  color: var(--r-text);
  font-weight: 500;
  line-height: 1.9;
  margin-bottom: 10px;
}
.r-quote footer { font-size: .8rem; color: var(--r-text-muted); }

/* --------------------------- CTA پایانی --------------------------- */
.r-cta {
  margin-top: 8px;
  padding: 28px;
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  background: var(--r-surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.r-cta__text strong { display: block; color: var(--r-text); font-size: .98rem; margin-bottom: 4px; }
.r-cta__text span { color: var(--r-text-muted); font-size: .84rem; }

.r-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-radius);
  font-size: .88rem;
  font-weight: 700;
  border: 1px solid var(--r-accent);
  color: var(--r-bg);
  background: var(--r-accent);
  transition: opacity .2s ease;
  white-space: nowrap;
}
.r-btn:hover { opacity: .88; }

/* --------------------------- فوتر --------------------------- */
.r-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  padding: 24px 0;
  border-top: 1px solid var(--r-border);
  text-align: center;
  font-size: .8rem;
  color: var(--r-text-dim);
}
.r-footer a {
  color: var(--r-text-dim);
  transition: color .2s ease;
}
.r-footer a:hover { color: var(--r-accent); }

/* --------------------------- ریسپانسیو --------------------------- */
@media (min-width: 900px) {
  .r-layout {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
  .r-sidebar {
    position: sticky;
    top: 32px;
  }
}
