/* ==========================================================
   DOCTOR PROFILE STYLES — د. ضياء العوضي
   نمط تكريمي + علمي + روحاني موحّد عبر الموقع
   ========================================================== */

/* ===== PORTRAIT SHARED ===== */
.dr-portrait {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-dark), #0a1f12);
}

.dr-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.95);
}

/* ===== HEADER ENHANCEMENT — صورة دائرية في الهيدر ===== */
.site-header .header-top {
  position: relative;
}

/* النمط الزخرفي للهيدر */
.site-header .header-main {
  position: relative;
  overflow: hidden;
}

.site-header .header-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9a84c' stroke-width='0.5' opacity='0.08'%3E%3Cpath d='M40 0 L40 80 M0 40 L80 40'/%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3Cpath d='M40 28 L52 40 L40 52 L28 40 Z'/%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px;
  pointer-events: none;
  opacity: 0.6;
}

.logo-area {
  position: relative;
  z-index: 2;
}

/* استبدال logo-emblem بصورة الدكتور */
.logo-emblem.has-portrait {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  padding: 2px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
  animation: portraitGlow 3s ease-in-out infinite;
}

.logo-emblem.has-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

@keyframes portraitGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.4); }
  50%      { box-shadow: 0 0 32px rgba(201, 168, 76, 0.7); }
}

/* ===== TRIBUTE CARD — البطاقة التكريمية في الصفحة الرئيسية ===== */
.tribute-card.with-portrait {
  padding-top: 40px !important;
  position: relative;
}

.tribute-portrait-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 4px;
  box-shadow:
    0 0 0 4px var(--white),
    0 0 40px rgba(201, 168, 76, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.15);
  animation: tributePulse 4s ease-in-out infinite;
}

.tribute-portrait-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@keyframes tributePulse {
  0%, 100% {
    box-shadow: 0 0 0 4px var(--white), 0 0 40px rgba(201, 168, 76, 0.4), 0 12px 32px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 0 0 4px var(--white), 0 0 60px rgba(201, 168, 76, 0.6), 0 12px 32px rgba(0, 0, 0, 0.15);
  }
}

/* أوراق زخرفية حول الصورة */
.tribute-portrait-wrap::before,
.tribute-portrait-wrap::after {
  content: '✦';
  position: absolute;
  font-size: 18px;
  color: var(--gold);
  opacity: 0.6;
  top: 50%;
  transform: translateY(-50%);
}
.tribute-portrait-wrap::before { left: -30px; }
.tribute-portrait-wrap::after  { right: -30px; }

/* زر "تعرف على الدكتور" */
.tribute-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(26, 61, 43, 0.25);
}
.tribute-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26, 61, 43, 0.35);
}

/* ===== ABOUT PAGE — صفحة التعريف ===== */

/* HERO */
.about-hero {
  position: relative;
  padding: 80px 24px 100px;
  background: linear-gradient(135deg, #0a1f12 0%, var(--green-dark) 50%, #0f2a1c 100%);
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23c9a84c' stroke-width='0.6' opacity='0.15'%3E%3Cpath d='M50 0 L50 100 M0 50 L100 50'/%3E%3Ccircle cx='50' cy='50' r='20'/%3E%3Cpath d='M50 30 L70 50 L50 70 L30 50 Z'/%3E%3Ccircle cx='50' cy='50' r='35'/%3E%3Cpath d='M50 15 L65 50 L50 85 L35 50 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px;
  opacity: 0.5;
}

.about-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--cream);
  clip-path: ellipse(70% 100% at 50% 100%);
}

.about-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 50px;
  align-items: center;
  z-index: 2;
}

.about-portrait {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 5px;
  position: relative;
  box-shadow:
    0 0 60px rgba(201, 168, 76, 0.35),
    0 20px 50px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.about-portrait::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50%;
  animation: rotateRing 30s linear infinite;
}

.about-portrait::after {
  content: '✦';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  color: var(--gold-light);
  text-shadow: 0 0 12px rgba(201, 168, 76, 0.6);
}

@keyframes rotateRing {
  to { transform: rotate(360deg); }
}

.about-hero-content {
  color: var(--white);
}

.about-hero-label {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.about-hero-name {
  font-family: 'Amiri', serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-hero-title {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--gold-light);
  margin: 0 0 20px;
  font-weight: 600;
}

.about-hero-tagline {
  font-family: 'Amiri', serif;
  font-size: clamp(17px, 2.4vw, 22px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin: 0 0 28px;
  font-style: italic;
}

.about-hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.about-stat {
  text-align: center;
}

.about-stat-num {
  font-family: 'Amiri', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.about-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* BIOGRAPHY SECTION */
.about-bio {
  max-width: 900px;
  margin: -40px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.about-bio-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.about-bio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-dark), var(--gold), var(--green-mid));
}

.about-section-title {
  font-family: 'Amiri', serif;
  font-size: clamp(26px, 4vw, 34px);
  color: var(--green-dark);
  margin: 0 0 8px;
  text-align: center;
  font-weight: 700;
}

.about-section-subtitle {
  font-size: 14px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 32px;
  font-weight: 600;
  letter-spacing: 1px;
}

.about-bio-text {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 18px;
}

.about-bio-text strong {
  color: var(--green-dark);
  font-weight: 700;
}

.about-bio-highlight {
  background: linear-gradient(135deg, var(--green-pale), #e8f5ee);
  border-right: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  font-family: 'Amiri', serif;
  font-size: 18px;
  color: var(--green-dark);
  line-height: 1.8;
  margin: 24px 0;
}

/* QUOTE WALL — معرض الاقتباسات */
.quote-wall-section {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 24px;
}

.quote-wall-header {
  text-align: center;
  margin-bottom: 48px;
}

.quote-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.quote-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, var(--cream) 100%);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.15);
  transition: all 0.4s ease;
  overflow: hidden;
}

.quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.quote-card::after {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: 'Amiri', serif;
  font-size: 100px;
  color: var(--gold);
  opacity: 0.12;
  line-height: 1;
  font-weight: 700;
}

.quote-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(201, 168, 76, 0.4);
}

.quote-card:hover::before {
  opacity: 1;
}

.quote-card-text {
  font-family: 'Amiri', serif;
  font-size: 18px;
  line-height: 1.9;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.quote-card-source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.5px;
  padding-top: 14px;
  border-top: 1px dashed rgba(201, 168, 76, 0.3);
}

.quote-card-source-icon {
  font-size: 14px;
}

/* SHOCK QUOTES — اقتباسات صادمة بنمط داكن */
.quote-card.shock {
  background: linear-gradient(135deg, #1a0808 0%, #2d0f0f 100%);
  border-color: rgba(220, 38, 38, 0.3);
}

.quote-card.shock::after {
  color: #dc2626;
  opacity: 0.2;
}

.quote-card.shock .quote-card-text {
  color: #fecaca;
}

.quote-card.shock .quote-card-source {
  color: #fca5a5;
  border-top-color: rgba(220, 38, 38, 0.3);
}

/* SCIENCE QUOTES — اقتباسات علمية بنمط أخضر داكن */
.quote-card.science {
  background: linear-gradient(135deg, #0a1f12 0%, #143a23 100%);
  border-color: rgba(82, 183, 136, 0.3);
}

.quote-card.science::after {
  color: var(--gold-light);
  opacity: 0.25;
}

.quote-card.science .quote-card-text {
  color: #d8f3dc;
}

.quote-card.science .quote-card-source {
  color: var(--gold-light);
  border-top-color: rgba(82, 183, 136, 0.3);
}

/* LEGACY SECTION — قسم الإرث مع صورة جانبية */
.legacy-section {
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 60px 24px;
}

.legacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.legacy-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.legacy-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s;
}

.legacy-image-wrap:hover img {
  transform: scale(1.05);
}

.legacy-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, transparent 60%, rgba(26, 61, 43, 0.4) 100%);
  z-index: 1;
}

.legacy-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 12px solid transparent;
  border-image: linear-gradient(135deg, var(--gold), transparent, var(--gold)) 1;
  pointer-events: none;
  z-index: 2;
}

.legacy-content h3 {
  font-family: 'Amiri', serif;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--green-dark);
  margin: 0 0 16px;
}

.legacy-content p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 16px;
}

.legacy-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.legacy-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  color: var(--text-mid);
  line-height: 1.8;
  border-bottom: 1px dashed rgba(201, 168, 76, 0.2);
}

.legacy-list li:last-child { border-bottom: none; }

.legacy-list li::before {
  content: '✦';
  position: absolute;
  right: 0;
  color: var(--gold);
  font-size: 16px;
}

/* HUMANITY SECTION — جانب إنساني */
.humanity-section {
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--cream) 100%);
  padding: 80px 24px;
  margin-top: 80px;
}

.humanity-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.humanity-content h3 {
  font-family: 'Amiri', serif;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--green-dark);
  margin: 0 0 16px;
}

.humanity-content p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 16px;
}

.humanity-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  max-width: 380px;
  margin: 0 auto;
}

.humanity-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.humanity-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 61, 43, 0.1), transparent);
  pointer-events: none;
}

/* CLOSING TRIBUTE */
.closing-tribute {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}

.closing-tribute-quote {
  font-family: 'Amiri', serif;
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--green-dark);
  line-height: 1.8;
  margin-bottom: 24px;
  font-weight: 700;
}

.closing-tribute-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 24px auto;
}

.closing-tribute-meta {
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 2px;
  font-weight: 700;
}

/* HOMEPAGE QUOTES STRIP — شريط اقتباسات في الصفحة الرئيسية */
.home-quotes-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 20px;
}

.home-quotes-header {
  text-align: center;
  margin-bottom: 36px;
}

.home-quotes-header h3 {
  font-family: 'Amiri', serif;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--green-dark);
  margin: 0 0 8px;
}

.home-quotes-header p {
  color: var(--text-light);
  font-size: 14px;
}

.home-quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .about-hero { padding: 60px 20px 80px; }
  .about-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .about-portrait {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  .about-bio-card { padding: 32px 24px; }
  .legacy-grid,
  .humanity-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legacy-content,
  .humanity-content {
    text-align: center;
  }
  .tribute-portrait-wrap {
    width: 110px;
    height: 110px;
    top: -50px;
  }
  .tribute-card.with-portrait {
    padding-top: 80px !important;
  }
  .quote-wall-grid {
    grid-template-columns: 1fr;
  }
  .about-hero-stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about-portrait { width: 170px; height: 170px; }
  .about-hero-name { font-size: 32px; }
  .quote-card { padding: 24px 20px; }
  .quote-card-text { font-size: 16px; }
}
