/* Mobile-First Arabic Luxury Design for Lammet Shabab Maswadeh */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&family=Reem+Kufi:wght@600;700&display=swap');

:root {
  --primary: #1b4332;       /* Deep Olive Green */
  --primary-light: #2d6a4f;
  --accent: #d4af37;        /* Elegant Gold */
  --accent-hover: #b89628;
  --bg-dark: #0f1c15;       /* Dark rich background */
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-dark: #1f2937;
  --text-light: #f8f9fa;
  --text-muted: #6c757d;
  --border-radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
  
  /* Type Badges */
  --badge-restaurant: #e63946;
  --badge-sea: #0077b6;
  --badge-cafe: #d97706;
  --badge-event: #7b2cbf;
  --badge-visit: #2a9d8f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  direction: rtl;
  text-align: right;
  background-color: #f4f7f5;
  color: var(--text-dark);
  min-height: 100vh;
  padding-bottom: 50px;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(27, 67, 50, 0.05) 0%, transparent 40%);
}

/* Header & Banner */
header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  color: var(--text-light);
  padding: 25px 20px 35px;
  text-align: center;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.brand-badge {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-login-btn {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.admin-login-btn:hover {
  color: var(--accent);
}

.app-title {
  font-family: 'Reem Kufi', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.app-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Container */
.container {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Month Navigation Control */
.month-navigator {
  background: #fff;
  margin-top: 15px;
  border-radius: 20px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-btn {
  background: #f0f4f1;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.nav-btn:active {
  transform: scale(0.92);
  background: var(--accent);
  color: #fff;
}

.current-month-display {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Event List & Cards */
.events-section {
  margin-top: 24px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--border-radius);
  color: var(--text-muted);
  box-shadow: var(--shadow);
}
.empty-state i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Card Styling */
.event-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}

.event-card-header {
  position: relative;
  height: 160px;
  background-color: var(--primary);
  overflow: hidden;
}

.event-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-type-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 14px;
  border-radius: 30px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.type-restaurant { background-color: var(--badge-restaurant); }
.type-sea { background-color: var(--badge-sea); }
.type-cafe { background-color: var(--badge-cafe); }
.type-event { background-color: var(--badge-event); }
.type-visit { background-color: var(--badge-visit); }

.countdown-badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(15, 28, 21, 0.85);
  backdrop-filter: blur(4px);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.event-card-body {
  padding: 18px;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.event-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 8px;
}

.event-info-row i {
  color: var(--primary);
  width: 18px;
  text-align: center;
}

.event-description {
  font-size: 0.92rem;
  color: #4b5563;
  margin: 12px 0 16px;
  line-height: 1.5;
  background: #f8faf9;
  padding: 10px 12px;
  border-radius: 10px;
  border-right: 3px solid var(--accent);
}

.capacity-progress-bar {
  background: #e5e7eb;
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}
.capacity-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
}
.capacity-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.event-card-actions {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.btn {
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-primary:disabled {
  background: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:active {
  transform: scale(0.98);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media(min-width: 480px) {
  .modal-overlay {
    align-items: center;
  }
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 460px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}

@media(min-width: 480px) {
  .modal-content {
    border-radius: 24px;
    transform: translateY(20px);
  }
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.modal-close {
  background: #f3f4f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: #6b7280;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
}

/* Alert Notification */
.alert-box {
  padding: 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: none;
}
.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
