/*-----------------------------------------------------------------------------------
  Memberships Page Styles
  Author: Zoe's
  Description: Custom styles for memberships pages
-----------------------------------------------------------------------------------*/

/* Membership Cards */
.membership-card {
  background: var(--white);
  border: 2px solid var(--lightGray);
  border-radius: 15px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.membership-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-color: var(--theme);
}

.membership-card.featured {
  border-color: var(--theme);
  background: linear-gradient(135deg, var(--white) 0%, #FFF5F2 100%);
  border-width: 3px;
}

.membership-card.featured::before {
  content: "limited";
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--theme);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.membership-price {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--theme);
  margin: 20px 0;
  font-family: 'Poppins', sans-serif;
}

.membership-original-value {
  text-decoration: line-through;
  opacity: 0.7;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--secondary);
  font-family: 'Poppins', sans-serif;
}

.membership-savings {
  background: var(--theme);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 25px;
  display: inline-block;
  margin: 15px 0;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.membership-services {
  margin: 20px 0;
}

.membership-services ul {
  list-style: none;
  padding: 0;
}

.membership-services li {
  padding: 8px 0;
  border-bottom: 1px solid var(--lightGray);
  position: relative;
  padding-left: 25px;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

.membership-services li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--theme);
  font-weight: bold;
}

.membership-duration {
  background: var(--lightGray);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 15px;
  display: inline-block;
  margin: 15px 0;
  font-family: 'Poppins', sans-serif;
}

.membership-btn {
  background: var(--theme);
  border: 2px solid var(--theme);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
}

.membership-btn:hover {
  background: var(--white);
  color: var(--theme);
  transform: scale(1.05);
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

/* Service Selection Styles */
.service-selection {
  background: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  border: 1px solid var(--lightGray);
}

.service-option {
  border: 2px solid var(--lightGray);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  cursor: default;
  transition: all 0.3s ease;
  position: relative;
  background: var(--white);
}

.service-option:hover {
  border-color: var(--theme);
  background: var(--theme);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  color: var(--white);
}

.service-option:hover .text-muted {
  color: rgba(250, 248, 246, 0.8) !important;
}

.service-option:hover h5 {
  color: var(--white) !important;
}

.service-option:hover p {
  color: rgba(250, 248, 246, 0.9) !important;
}

.service-option:hover strong {
  color: var(--white) !important;
}

.service-option:hover .quantity-display {
  color: var(--white) !important;
}

.service-option:hover small {
  color: rgba(250, 248, 246, 0.7) !important;
}

.service-option.selected {
  border-color: var(--theme);
  background: var(--theme);
  color: var(--white);
}

.service-option.selected::after {
  content: "✓";
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--white);
}

.service-option.selected .text-muted {
  color: rgba(250, 248, 246, 0.8) !important;
}

.service-option.selected h5 {
  color: var(--white) !important;
}

.service-option.selected p {
  color: rgba(250, 248, 246, 0.9) !important;
}

.service-option.selected strong {
  color: var(--white) !important;
}

.service-option.selected .quantity-display {
  color: var(--white) !important;
}

.service-option.selected small {
  color: rgba(250, 248, 246, 0.7) !important;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--theme);
  background: var(--white);
  color: var(--theme);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: var(--theme);
  color: var(--white);
}

.quantity-display {
  font-size: 1.2rem;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

.continue-btn {
  background: var(--theme);
  color: var(--white);
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 30px;
  font-family: 'Poppins', sans-serif;
}

.continue-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.continue-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.membership-summary {
  background: var(--lightGray);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
}

.price-highlight {
  font-size: 2rem;
  font-weight: 600;
  color: var(--theme);
  margin: 15px 0;
  font-family: 'Poppins', sans-serif;
}

.savings-badge {
  background: var(--theme);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin: 10px 0;
  font-family: 'Poppins', sans-serif;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin: 60px 0 40px;
}

.section-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--secondary);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--lightGray);
}

/* Membership Info Card */
.membership-info-card {
  background: var(--white);
  border: 2px solid var(--lightGray);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.membership-name {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}

.membership-description {
  color: var(--secondary);
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}

.membership-duration {
  background: var(--lightGray);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 15px;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.membership-price-display {
  text-align: right;
}

.original-value {
  text-decoration: line-through;
  opacity: 0.7;
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--secondary);
  font-family: 'Poppins', sans-serif;
}

.current-price {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--theme);
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
  .membership-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .membership-card {
    padding: 20px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .membership-price {
    font-size: 2rem;
  }
  
  .membership-info-card {
    padding: 20px;
  }
  
  .membership-name {
    font-size: 1.5rem;
  }
  
  .current-price {
    font-size: 1.8rem;
  }
}

/* Existing Customer Page Styles */
.service-option.exhausted {
  opacity: 0.6;
  background: #f8f9fa !important;
  border-color: #dee2e6 !important;
}

.service-option.exhausted:hover {
  border-color: #dee2e6 !important;
  background: #f8f9fa !important;
  transform: none !important;
  box-shadow: none !important;
  color: #6c757d !important;
}

.service-option.exhausted:hover .text-muted {
  color: #6c757d !important;
}

.service-option.exhausted:hover h5 {
  color: #6c757d !important;
}

.service-option.exhausted:hover p {
  color: #6c757d !important;
}

.service-option.exhausted:hover strong {
  color: #6c757d !important;
}

.service-option.exhausted:hover .quantity-display {
  color: #6c757d !important;
}

.service-option.exhausted:hover small {
  color: #6c757d !important;
}

/* تحسين عام للخدمات المعطلة */
.service-option.exhausted h5,
.service-option.exhausted p,
.service-option.exhausted strong,
.service-option.exhausted .text-muted,
.service-option.exhausted small {
  color: #6c757d !important;
}

/* تحسين أزرار الكمية */
.quantity-btn:hover {
  background: var(--theme) !important;
  color: var(--white) !important;
  border-color: var(--white) !important;
}

.quantity-btn:active {
  background: var(--theme) !important;
  color: var(--white) !important;
  border-color: var(--white) !important;
  transform: scale(0.95);
}

.quantity-btn:disabled {
  background: #f8f9fa !important;
  border-color: #dee2e6 !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
}

.quantity-btn:disabled:hover {
  background: #f8f9fa !important;
  border-color: #dee2e6 !important;
  color: #6c757d !important;
  transform: none !important;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

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

/* Alert Styles */
.alert {
  padding: 15px 20px;
  border-radius: 10px;
  margin: 20px 0;
  font-weight: 500;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
