/* Zodiac Finder - اعرف برجك من تاريخ ميلادك */

.zf-widget {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  background: #06080f;
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(59,7,100,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(6,78,59,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(120,53,15,0.06) 0%, transparent 40%);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 520px;
}
.zf-widget *, .zf-widget *::before, .zf-widget *::after { box-sizing: border-box; }

/* ─── Ambient ─── */
.zf-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  animation: zfOrb 16s ease-in-out infinite;
  pointer-events: none;
}
.zf-orb-1 { width: 450px; height: 450px; background: #7c3aed; top: -150px; left: -100px; }
.zf-orb-2 { width: 380px; height: 380px; background: #0d9488; bottom: -120px; right: -100px; animation-delay: -6s; }
.zf-orb-3 { width: 200px; height: 200px; background: #d97706; top: 60%; left: 60%; animation-delay: -10s; opacity: 0.1; }
@keyframes zfOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px,-25px) scale(1.05); }
  66% { transform: translate(-25px,20px) scale(0.95); }
}

.zf-stars { position: absolute; inset: 0; pointer-events: none; }
.zf-star {
  position: absolute; background: white; border-radius: 50%;
  animation: zfTwinkle 4s ease-in-out infinite;
}
@keyframes zfTwinkle { 0%,100% { opacity: 0.12; } 50% { opacity: 0.65; } }

.zf-constellation { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.zf-const-dot {
  position: absolute; width: 3px; height: 3px;
  background: rgba(167,139,250,0.4); border-radius: 50%;
  box-shadow: 0 0 6px rgba(167,139,250,0.3);
  animation: zfConstPulse 5s ease-in-out infinite;
}
@keyframes zfConstPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 0.8; } }

/* ─── Card ─── */
.zf-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 560px;
  background: rgba(12,16,28,0.88);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  padding: 44px 36px;
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.05),
    0 30px 60px -15px rgba(0,0,0,0.55),
    0 0 120px rgba(124,58,237,0.05);
  backdrop-filter: blur(24px);
  margin: 0 auto;
}
.zf-card::before {
  content: ''; position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 160px; height: 3px;
  background: linear-gradient(90deg, #7c3aed, #d97706, #0d9488);
  border-radius: 0 0 4px 4px;
}

.zf-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* ─── Sections ─── */
.zf-section { animation: zfFadeIn 0.5s ease; }
.zf-hidden { display: none !important; }
@keyframes zfFadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Header ─── */
.zf-header { text-align: center; margin-bottom: 32px; }
.zf-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.15), rgba(217,119,6,0.08));
  border: 1px solid rgba(124,58,237,0.2);
  margin-bottom: 20px; position: relative;
}
.zf-icon-main {
  font-size: 36px;
  animation: zfIconSpin 20s linear infinite;
}
@keyframes zfIconSpin {
  0% { content: '♈'; } 8.33% { content: '♉'; }
}
.zf-icon-ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1px dashed rgba(124,58,237,0.2);
  animation: zfRingSpin 30s linear infinite;
}
@keyframes zfRingSpin { to { transform: rotate(360deg); } }

.zf-title {
  font-family: 'Amiri', serif !important;
  font-size: 30px !important; font-weight: 700 !important;
  background: linear-gradient(135deg, #e9d5ff, #fbbf24, #5eead4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin: 0 0 8px 0 !important; padding: 0 !important;
  line-height: 1.4 !important; border: none !important;
}
.zf-subtitle { color: #94a3b8; font-size: 15px; margin: 0; }

/* ─── Date Selectors ─── */
.zf-date-section { margin-bottom: 24px; }
.zf-date-label {
  display: block; text-align: center;
  font-size: 16px; font-weight: 600; color: #cbd5e1;
  margin-bottom: 16px;
}
.zf-date-row { display: flex; gap: 12px; }
.zf-date-col { flex: 1; }
.zf-date-col-wide { flex: 1.6; }
.zf-mini-label {
  display: block; font-size: 12px; color: #64748b;
  margin-bottom: 6px; text-align: center;
}
.zf-select {
  width: 100%; padding: 14px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; color: #f1f5f9;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px; font-weight: 500;
  outline: none; cursor: pointer;
  transition: all 0.3s; direction: rtl;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2364748b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}
.zf-select:focus {
  border-color: rgba(124,58,237,0.4);
  background-color: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.08);
}
.zf-select option {
  background: #1e1b2e; color: #f1f5f9;
}

.zf-error {
  color: #f43f5e; font-size: 13px; text-align: center;
  margin-top: 10px; display: none;
}
.zf-error.zf-show { display: block; }

@keyframes zfShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.zf-shake { animation: zfShake 0.4s ease; }

/* ─── Button ─── */
.zf-btn {
  width: 100%; padding: 16px;
  border: none; border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #d97706, #0d9488);
  color: white; font-family: 'Tajawal', sans-serif;
  font-size: 18px; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
  position: relative; overflow: hidden;
}
.zf-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.zf-btn:hover::before { opacity: 1; }
.zf-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124,58,237,0.25); }
.zf-btn:active { transform: translateY(0); }

/* ─── Zodiac Belt ─── */
.zf-zodiac-belt {
  margin-top: 28px; overflow: hidden; position: relative;
  height: 44px; mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}
.zf-belt-track {
  display: flex; gap: 20px; animation: zfBeltScroll 25s linear infinite;
  white-space: nowrap;
}
.zf-belt-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: #475569; flex-shrink: 0;
}
.zf-belt-item span:first-child { font-size: 22px; opacity: 0.5; }
@keyframes zfBeltScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════
   RESULT
   ═══════════════════════════════════ */

.zf-result-header { text-align: center; margin-bottom: 28px; }

.zf-result-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100px; height: 100px; border-radius: 50%;
  margin-bottom: 16px; position: relative;
  animation: zfResultPop 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes zfResultPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.zf-result-icon-wrap::after {
  content: ''; position: absolute; inset: -8px;
  border-radius: 50%; border: 2px dashed;
  border-color: inherit; opacity: 0.2;
  animation: zfRingSpin 20s linear infinite;
}
.zf-result-icon { font-size: 52px; }

.zf-result-badge {
  display: inline-block; padding: 6px 20px;
  border-radius: 30px; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; margin-bottom: 12px;
}

.zf-result-name {
  font-family: 'Amiri', serif !important;
  font-size: 34px !important; font-weight: 700 !important;
  margin: 0 0 6px 0 !important; padding: 0 !important;
  line-height: 1.3 !important; border: none !important;
}
.zf-result-dates {
  font-size: 15px; color: #94a3b8; margin: 0 0 4px 0;
}
.zf-result-birthday {
  font-size: 13px; color: #64748b; margin: 0;
}

/* ─── Info Grid ─── */
.zf-info-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 24px;
}
.zf-info-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 16px 10px;
  text-align: center; transition: all 0.3s;
}
.zf-info-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.zf-info-icon { font-size: 20px; margin-bottom: 6px; }
.zf-info-label { font-size: 11px; color: #64748b; margin-bottom: 4px; }
.zf-info-value { font-size: 14px; font-weight: 700; color: #e2e8f0; }

/* ─── Traits ─── */
.zf-traits-section { margin-bottom: 20px; }
.zf-traits-title {
  font-size: 16px; font-weight: 700; color: #c4b5fd;
  margin-bottom: 14px; text-align: center;
}
.zf-traits-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
}
.zf-trait-tag {
  padding: 8px 18px; border-radius: 30px;
  font-size: 13px; font-weight: 600;
  animation: zfTagIn 0.4s ease both;
}
@keyframes zfTagIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* ─── Description ─── */
.zf-desc-section {
  background: rgba(124,58,237,0.05);
  border: 1px solid rgba(124,58,237,0.1);
  border-radius: 16px; padding: 22px 20px;
  margin-bottom: 20px;
}
.zf-desc-title {
  font-family: 'Amiri', serif; font-size: 18px;
  font-weight: 700; color: #c4b5fd; margin-bottom: 10px;
}
.zf-desc-text {
  font-size: 15px; color: #cbd5e1; line-height: 1.9;
}

/* ─── Compatibility ─── */
.zf-compat-section {
  background: rgba(217,119,6,0.05);
  border: 1px solid rgba(217,119,6,0.1);
  border-radius: 16px; padding: 22px 20px;
  margin-bottom: 20px;
}
.zf-compat-title {
  font-family: 'Amiri', serif; font-size: 18px;
  font-weight: 700; color: #fbbf24; margin-bottom: 14px;
  text-align: center;
}
.zf-compat-row {
  display: flex; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.zf-compat-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s; min-width: 80px;
}
.zf-compat-item:hover {
  background: rgba(217,119,6,0.08);
  border-color: rgba(217,119,6,0.2);
  transform: translateY(-2px);
}
.zf-compat-icon { font-size: 26px; }
.zf-compat-name { font-size: 12px; color: #94a3b8; font-weight: 500; }

/* ─── Strengths / Weaknesses ─── */
.zf-strengths-section { margin-bottom: 24px; }
.zf-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zf-col-box {
  border-radius: 14px; padding: 18px 16px;
}
.zf-col-strength {
  background: rgba(16,185,129,0.05);
  border: 1px solid rgba(16,185,129,0.1);
}
.zf-col-weakness {
  background: rgba(244,63,94,0.05);
  border: 1px solid rgba(244,63,94,0.08);
}
.zf-col-title {
  font-size: 14px; font-weight: 700; margin-bottom: 10px;
}
.zf-col-strength .zf-col-title { color: #34d399; }
.zf-col-weakness .zf-col-title { color: #fb7185; }
.zf-col-list { display: flex; flex-direction: column; gap: 6px; }
.zf-col-item {
  font-size: 13px; color: #94a3b8; line-height: 1.6;
  padding-right: 8px;
  border-right: 2px solid rgba(255,255,255,0.06);
}
.zf-col-strength .zf-col-item { border-color: rgba(52,211,153,0.2); }
.zf-col-weakness .zf-col-item { border-color: rgba(251,113,133,0.15); }

/* ─── Actions ─── */
.zf-action-row {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 14px;
}
.zf-btn-secondary {
  padding: 10px 24px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #94a3b8; font-family: 'Tajawal', sans-serif;
  font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.3s;
}
.zf-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  color: #f1f5f9; border-color: rgba(255,255,255,0.15);
}
.zf-disclaimer {
  font-size: 12px; color: #475569; text-align: center;
}

/* ─── Particle effects ─── */
.zf-float-particle {
  position: absolute; font-size: 18px;
  animation: zfFloatUp 3.5s ease-out forwards;
  opacity: 0; pointer-events: none;
}
@keyframes zfFloatUp {
  0% { opacity: 1; transform: translateY(0) scale(0.4) rotate(0); }
  100% { opacity: 0; transform: translateY(-320px) scale(1.1) rotate(45deg); }
}

/* ─── Mobile ─── */
@media (max-width: 520px) {
  .zf-widget { padding: 24px 12px; }
  .zf-card { padding: 32px 18px; border-radius: 22px; }
  .zf-title { font-size: 24px !important; }
  .zf-info-grid { grid-template-columns: repeat(2, 1fr); }
  .zf-two-cols { grid-template-columns: 1fr; }
  .zf-result-name { font-size: 28px !important; }
  .zf-date-row { gap: 8px; }
  .zf-select { padding: 12px 8px; font-size: 14px; }
}
