/* ============================================================
   نَسَق — Contact & Support Page Styles
   تكميلية لـ styles.css و privacy.css
   ============================================================ */

/* أيقونة hero خاصة بالتواصل */
.contact-hero-icon {
  animation: contact-pulse 3s ease-in-out infinite;
}
@keyframes contact-pulse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-3deg); }
  75% { transform: translateY(-4px) rotate(3deg); }
}

/* ============================================================
   Contact section
   ============================================================ */

.contact-section {
  padding: 30px 0 60px;
  position: relative;
  z-index: 1;
}

.contact-primary {
  max-width: 960px;
  margin: 0 auto 70px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .contact-row-2 { grid-template-columns: 1fr; }
}

/* بطاقة تواصل عامة */
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 300ms;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lighter);
}
.contact-card:hover::before { opacity: 1; }

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
  transition: transform 300ms;
}
.contact-card:hover .contact-card-icon {
  transform: scale(1.08) rotate(-6deg);
}

.contact-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
  word-break: break-all;
}
.contact-value.mono-num {
  font-family: 'Segoe UI', Tahoma, system-ui, sans-serif;
  letter-spacing: 0;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
  display: block;
  width: fit-content;
}
.contact-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.contact-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: all 300ms;
}
.contact-card:hover .contact-arrow {
  color: var(--primary);
  transform: translateX(-4px);
}

/* تنويعات البطاقات */
.contact-card-primary .contact-card-icon {
  background: linear-gradient(135deg, #3B82F6, #1E3A8A);
}
.contact-card-whatsapp .contact-card-icon {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}
.contact-card-telegram .contact-card-icon {
  background: linear-gradient(135deg, #29B6F6, #0288D1);
  box-shadow: 0 8px 20px rgba(41, 182, 246, 0.3);
}

/* ============================================================
   Social grid
   ============================================================ */

.contact-social {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.contact-social h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin-bottom: 8px;
}
.contact-social .section-sub {
  margin-bottom: 32px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 768px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.social-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 300ms;
  z-index: 0;
}
.social-card > * { position: relative; z-index: 1; }
.social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  color: white;
  border-color: transparent;
}
.social-card:hover::after { opacity: 1; }

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary);
  margin-bottom: 6px;
  transition: all 300ms;
}
.social-card:hover .social-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: scale(1.1);
}

.social-card strong {
  font-size: 14px;
  font-weight: 800;
}
.social-card span {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: -0.2px;
}
.social-card:hover span { color: rgba(255, 255, 255, 0.85); }

/* تخصيصات لكل منصة (hover) */
.social-x:hover::after { background: linear-gradient(135deg, #1d1d1d, #0a0a0a); }
.social-youtube:hover::after { background: linear-gradient(135deg, #FF0000, #B91C1C); }
.social-telegram:hover::after { background: linear-gradient(135deg, #29B6F6, #0288D1); }
.social-facebook:hover::after { background: linear-gradient(135deg, #1877F2, #0D5DBF); }

/* ============================================================
   Support section — قسم الدعم البارز
   ============================================================ */

.support-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.support-card {
  max-width: 920px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #2563EB 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(30, 64, 175, 0.4);
}
.support-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.35), transparent 60%);
  pointer-events: none;
  animation: support-glow 6s ease-in-out infinite;
}
.support-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent 60%);
  pointer-events: none;
  animation: support-glow 8s ease-in-out infinite reverse;
}
@keyframes support-glow {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(20px, -20px); }
}

.support-decoration {
  position: absolute;
  top: 30px;
  left: 40px;
  font-size: 80px;
  opacity: 0.18;
  animation: heart-beat 1.8s ease-in-out infinite;
  pointer-events: none;
  filter: blur(1px);
}
@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.15); }
  20% { transform: scale(1); }
  30% { transform: scale(1.15); }
  40% { transform: scale(1); }
}

.support-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.support-badge {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  backdrop-filter: blur(8px);
}
.support-badge .hero-badge-dot {
  background: #FBBF24;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6);
}

.support-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 18px 0 14px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.support-lead {
  font-size: 17px;
  line-height: 1.85;
  opacity: 0.92;
  max-width: 620px;
  margin: 0 auto 18px;
}

.support-tagline {
  font-size: 18px;
  margin-bottom: 32px;
  color: #FBBF24;
}
.support-tagline strong { font-weight: 800; }

.support-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto 28px;
}
@media (max-width: 600px) {
  .support-options { grid-template-columns: 1fr; }
}

.support-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: inherit;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  text-align: start;
  border: 1.5px solid transparent;
}
.support-btn svg { flex-shrink: 0; }
.support-btn span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.support-btn strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.support-btn small {
  font-size: 11px;
  opacity: 0.85;
}

.support-btn-primary {
  background: #FBBF24;
  color: #78350F;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.35);
}
.support-btn-primary:hover {
  background: #F59E0B;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.5);
}

.support-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.support-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.5);
}

.support-thanks {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 8px;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-section {
  padding: 80px 0 100px;
  position: relative;
  z-index: 1;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 250ms;
}
.faq-item:hover {
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow);
}
.faq-item[open] {
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow-lg);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-q {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: all 250ms;
}
.faq-toggle::before, .faq-toggle::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
}
.faq-toggle::before {
  width: 12px;
  height: 2px;
}
.faq-toggle::after {
  width: 2px;
  height: 12px;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item[open] .faq-toggle {
  background: var(--gradient);
}
.faq-item[open] .faq-toggle::before { background: white; }
.faq-item[open] .faq-toggle::after {
  background: white;
  transform: rotate(90deg);
}

.faq-item p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.85;
}
.faq-item p code {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--primary-dark);
  direction: ltr;
  display: inline-block;
}
.faq-item p a {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--primary-lighter);
  transition: all 200ms;
}
.faq-item p a:hover {
  border-bottom-style: solid;
  color: var(--primary-dark);
}
