/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  direction: rtl;
}

body {
  font-family: "SF Arabic", "Segoe UI Arabic", "Tahoma", "Arial Unicode MS", "Lucida Grande", sans-serif;
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  background-color: #f8fafc;
}

/* Arabic text classes */
.arabic-text {
  font-family: "SF Arabic", "Segoe UI Arabic", "Tahoma", "Arial Unicode MS", "Lucida Grande", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.02em;
  word-spacing: 0.1em;
}

.arabic-heading {
  font-family: "SF Arabic", "Segoe UI Arabic", "Tahoma", "Arial Unicode MS", "Lucida Grande", sans-serif;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.arabic-button {
  font-family: "SF Arabic", "Segoe UI Arabic", "Tahoma", "Arial Unicode MS", "Lucida Grande", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.arabic-counter {
  font-family: "SF Arabic", "Segoe UI Arabic", "Tahoma", "Arial Unicode MS", "Lucida Grande", sans-serif;
  font-weight: 700;
  direction: ltr;
  display: inline-block;
}

/* Utility classes */
.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}

.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.min-h-screen {
  min-height: 100vh;
}

/* Screen management */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* Card styles */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.card-content {
  padding: 1.5rem;
}

/* Welcome screen */
.welcome-bg {
  background: linear-gradient(135deg, #0769b2 0%, rgba(7, 105, 178, 0.8) 50%, rgba(7, 105, 178, 0.6) 100%);
}

.welcome-card {
  width: 100%;
  max-width: 48rem;
}

.logo {
  width: 200px;
  height: 120px;
  object-fit: contain;
}

.logo-small {
  width: 150px;
  height: 90px;
  object-fit: contain;
}

.welcome-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 1.875rem;
  font-weight: 600;
  color: #0769b2;
  margin-bottom: 1.5rem;
}

.welcome-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.clock-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.clock-icon-small {
  width: 1.25rem;
  height: 1.25rem;
}

.welcome-button {
  background: #0769b2;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.welcome-button:hover {
  background: rgba(7, 105, 178, 0.9);
  transform: scale(1.05);
}

/* Timeline screen */
.timeline-bg {
  background: linear-gradient(135deg, rgba(7, 105, 178, 0.1) 0%, rgba(7, 105, 178, 0.05) 100%);
}

.timeline-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.current-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #6b7280;
}

/* Progress section */
.progress-card {
  background: rgba(255, 255, 255, 0.8);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}

.progress-container {
  position: relative;
  margin-bottom: 0.25rem;
}

.progress-bar {
  height: 12px;
  width: 100%;
  background: rgba(7, 105, 178, 0.2);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #0769b2;
  transition: width 0.3s ease;
  width: 0%;
}

.prize-marker {
  position: absolute;
  top: 0;
  right: 16.67%; /* بدلاً من left: 83.33% */
  height: 12px;
  width: 2px;
  background: #eab308;
  border-right: 2px solid #d97706;
}

.prize-triangle {
  position: absolute;
  top: -8px;
  right: -6px; /* بدلاً من left */
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #eab308;
}

.prize-label {
  position: absolute;
  top: -32px;
  right: 16.67%; /* بدلاً من left: 83.33% */
  transform: translateX(50%); /* بدلاً من -50% */
  font-size: 0.75rem;
  font-weight: 600;
  color: #b45309;
  white-space: nowrap;
}

.progress-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.current-status {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0769b2;
  margin-bottom: 0.5rem;
}

.countdown-box {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.gift-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #d97706;
}

.countdown-header span {
  font-weight: 600;
  color: #92400e;
}

.countdown-timer {
  font-size: 2rem;
  font-weight: 700;
  color: #92400e;
}

.prize-announcement {
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.prize-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.prize-header .gift-icon {
  color: #16a34a;
}

.prize-header span {
  font-weight: 600;
  color: #15803d;
}

/* Activities grid */
.activities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .activities-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.activities-card,
.prize-card {
  background: rgba(255, 255, 255, 0.8);
}

.activities-title,
.prize-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.users-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #0769b2;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(7, 105, 178, 0.05);
}

.activity-item.active {
  background: rgba(7, 105, 178, 0.1);
  border: 2px solid rgba(7, 105, 178, 0.3);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.activity-info-btn {
  width: 1.5rem;
  height: 1.5rem;
  background: #f97316;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.activity-info-btn:hover {
  background: #ea580c;
  transform: scale(1.1);
}

.activity-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: #0769b2;
}

.activity-item.active .activity-icon {
  color: #0769b2;
}

.activity-text {
  flex: 1;
  color: #374151;
}

.activity-item.active .activity-text {
  color: #0769b2;
  font-weight: 500;
}

.activity-status {
  width: 0.5rem;
  height: 0.5rem;
  background: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Prize section */
.prize-location {
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.prizes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prize-item {
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all 0.5s ease;
  border: 1px solid #fde68a;
  background: #fffbeb;
}

.prize-item.active {
  background: #fde68a;
  border-color: #f59e0b;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
}

.prize-amount {
  font-weight: 700;
  color: #b45309;
}

.first-prize .prize-amount {
  font-size: 2rem;
}
.second-prize .prize-amount {
  font-size: 1.5rem;
}
.third-prize .prize-amount {
  font-size: 1.25rem;
}

.prize-label {
  font-size: 0.875rem;
  color: #d97706;
}

.prize-item.active .prize-amount {
  color: #92400e;
}

.prize-item.active .prize-label {
  color: #b45309;
}

/* Social media section */
.social-card {
  background: rgba(255, 255, 255, 0.8);
}

.social-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  padding: 0.5rem;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-link img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  filter: invert(1);
}

.social-link.instagram {
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
}

.social-link.tiktok {
  background: #000000;
}

.social-link.youtube {
  background: #dc2626;
}

.social-link.twitter {
  background: #000000;
}

.social-link.facebook {
  background: #2563eb;
}

/* Thank you screen */
.thank-you-card {
  background: rgba(255, 255, 255, 0.8);
}

.thank-you-title {
  font-size: 2rem;
  font-weight: 600;
  color: #0769b2;
  margin-bottom: 1rem;
}

.rating-section {
  margin-bottom: 2rem;
}

.rating-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.rating-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.rating-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.rating-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.rating-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.rating-button.needs-improvement:hover {
  border-color: #fca5a5;
}

.rating-button.satisfied:hover {
  border-color: #86efac;
}

.rating-emoji {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.rating-text {
  font-size: 0.875rem;
  font-weight: 600;
}

.needs-improvement .rating-text {
  color: #dc2626;
}

.satisfied .rating-text {
  color: #16a34a;
}

.rating-footer {
  font-size: 0.875rem;
  color: #6b7280;
}

.thank-you-message {
  margin-bottom: 2rem;
}

.thank-you-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.thank-you-text {
  font-size: 1.125rem;
  color: #374151;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}

.modal-content {
  width: 100%;
  max-width: 28rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  direction: rtl;
  text-align: right;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 0 1.5rem;
  margin-bottom: 1rem;
}

.modal-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #0769b2;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  flex: 1;
}

.modal-body {
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.info-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.location-icon {
  color: #16a34a;
}
.user-icon {
  color: #9333ea;
}
.directions-icon {
  color: #0769b2;
}
.phone-icon {
  color: #ea580c;
}

.info-content {
  flex: 1;
}

.info-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.25rem;
}

.info-text {
  color: #6b7280;
}

.modal-close-button {
  width: 100%;
  margin: 1.5rem;
  margin-bottom: 1.5rem;
  background: #0769b2;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-close-button:hover {
  background: rgba(7, 105, 178, 0.9);
}

/* Responsive design */
@media (max-width: 768px) {
  .welcome-title {
    font-size: 1.875rem;
  }

  .welcome-subtitle {
    font-size: 1.5rem;
  }

  .timeline-title {
    font-size: 1.875rem;
  }

  .rating-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .social-links {
    gap: 1rem;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* مسافة بين الزرين */
  margin-top: 1.5rem;
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
}



.screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  overflow-y: auto;
  position: relative;
  z-index: 0;
}

.screen.active {
  display: block;
  z-index: 10;
}

.map-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.welcome-button {
  white-space: nowrap;
  text-align: center;
  width: 100%;
  max-width: 280px;
}



