/* ==========================================
   Golf House - Sell Page Styles
   ========================================== */

.sell-main-container {
  padding-top: 100px;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 4rem;
}

.sell-hero-banner {
  background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(212,175,55,0.02) 100%);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}
.sell-hero-banner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.sell-hero-banner p {
  font-size: 0.9rem;
  color: var(--dark-300);
}
.sell-hero-banner a {
  color: #25D366;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.3s;
}
.sell-hero-banner a:hover { opacity: 0.7; }

/* Cards Grid */
.sell-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.sell-card {
  background: var(--dark-800);
  border: 1px solid var(--dark-600);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.sell-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212,175,55,0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.sell-card:hover::before { opacity: 1; }
.sell-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.sell-card-icon {
  width: 80px; height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(212,175,55,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sell-card-icon svg { width: 36px; height: 36px; color: var(--gold); }
.sell-card h3 {
  font-size: 1.4rem; font-weight: 800;
  color: var(--white); margin-bottom: 0.75rem;
}
.sell-card .free-badge {
  display: inline-block;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff; font-size: 0.75rem; font-weight: 800;
  padding: 0.25rem 0.8rem; border-radius: 20px;
  margin-bottom: 0.75rem;
}
.sell-card p {
  font-size: 0.9rem; color: var(--dark-300);
  line-height: 1.9; margin-bottom: 1.5rem;
}
.sell-card-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 2rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--dark-900); font-weight: 700; font-size: 0.95rem;
  border: none; border-radius: 14px; cursor: pointer;
  transition: all 0.3s; font-family: 'Tajawal', sans-serif;
}
.sell-card-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(212,175,55,0.3);
}

/* Self-listing Modal */
.sell-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.sell-modal-overlay.active { display: flex; }
.sell-modal {
  background: var(--dark-800); border: 1px solid var(--dark-600);
  border-radius: 20px; width: 100%; max-width: 800px;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.sell-modal-header {
  padding: 1.5rem 2rem; border-bottom: 1px solid var(--dark-600);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.sell-modal-header h3 { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.sell-modal-close {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--dark-700); border: 1px solid var(--dark-600);
  color: var(--dark-300); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.sell-modal-close:hover { color: #ff6b6b; border-color: #ff6b6b; }
.sell-modal form {
  display: flex; flex-direction: column; flex: 1; min-height: 0;
}
.sell-modal-body {
  padding: 2rem; overflow-y: auto; flex: 1;
  -webkit-overflow-scrolling: touch;
}
.sell-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.sell-form-group {
  display: flex; flex-direction: column; gap: 0.5rem;
  min-width: 0;
}
.sell-form-group.full-width { grid-column: 1 / -1; }
.sell-form-group label {
  font-size: 0.8rem; font-weight: 700; color: var(--dark-200);
  letter-spacing: 0.02em;
}
.sell-form-group input {
  background: var(--dark-900); border: 1px solid var(--dark-600);
  border-radius: 10px; padding: 0.65rem 0.9rem;
  color: var(--white); font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem; transition: all 0.3s;
  outline: none; width: 100%;
}
.sell-form-group input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.08); }
.sell-form-group input::placeholder { color: var(--dark-400); font-size: 0.8rem; }
.sell-form-group .hint {
  font-size: 0.75rem; color: var(--dark-400);
}

/* Custom Dropdown Styles */
.sell-dropdown-container {
  position: relative; width: 100%;
}
.sell-dropdown-btn {
  width: 100%; background: var(--dark-900); border: 1px solid var(--dark-600);
  border-radius: 10px; padding: 0.65rem 0.9rem;
  color: var(--white); font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.3s; outline: none; text-align: right;
}
.sell-dropdown-btn:hover { border-color: var(--dark-400); }
.sell-dropdown-btn:focus,
.sell-dropdown-btn.active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.08); }
.sell-dropdown-btn svg {
  color: var(--dark-400); flex-shrink: 0; transition: transform 0.3s;
}
.sell-dropdown-menu.open + .sell-dropdown-btn svg,
.sell-dropdown-btn.active svg { transform: rotate(180deg); }
.sell-dd-text { flex: 1; text-align: right; }

.sell-dropdown-menu {
  position: absolute; top: calc(100% + 4px); right: 0; left: 0;
  background: var(--dark-800); border: 1px solid var(--dark-500);
  border-radius: 12px; padding: 0.3rem;
  max-height: 200px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  z-index: 50;
}
.sell-dropdown-menu.open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sell-dropdown-item {
  padding: 0.55rem 0.8rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--dark-200);
  cursor: pointer; transition: all 0.2s;
}
.sell-dropdown-item:hover {
  background: rgba(212,175,55,0.08); color: var(--white);
}
.sell-dropdown-item.selected {
  background: rgba(212,175,55,0.12); color: var(--gold);
}

.sell-form-section {
  background: var(--dark-900); border: 1px solid var(--dark-600);
  border-radius: 12px; padding: 1rem; margin-top: 1rem;
}
.sell-form-section label {
  font-size: 0.8rem; font-weight: 700; color: var(--dark-200);
  display: block; margin-bottom: 0.5rem;
}
.sell-form-section input[type="file"] {
  color: var(--dark-300); font-size: 0.8rem;
}
.sell-submit-bar {
  padding: 1.2rem 2rem; border-top: 1px solid var(--dark-600);
  display: flex; align-items: center; justify-content: flex-end; gap: 1rem;
  flex-shrink: 0;
}
.sell-btn-cancel {
  padding: 0.6rem 1.5rem; background: var(--dark-700);
  border: 1px solid var(--dark-600); border-radius: 12px;
  color: var(--white); font-weight: 600; cursor: pointer;
  font-family: 'Tajawal', sans-serif; transition: all 0.3s;
}
.sell-btn-cancel:hover { background: var(--dark-600); }
.sell-btn-submit {
  padding: 0.6rem 2rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none; border-radius: 12px; color: var(--dark-900);
  font-weight: 700; cursor: pointer; font-family: 'Tajawal', sans-serif;
  transition: all 0.3s;
}
.sell-btn-submit:hover { box-shadow: 0 6px 20px rgba(212,175,55,0.3); }

/* ===== Wizard (Card 2) ===== */
.wizard-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--dark-900);
  display: none; flex-direction: column;
}
.wizard-overlay.active { display: flex; }
.wizard-header {
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--dark-600);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.wizard-header h3 { font-size: 1.1rem; font-weight: 800; color: var(--white); }
.wizard-progress {
  display: flex; gap: 0.4rem; align-items: center;
}
.wizard-progress-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--dark-600); transition: all 0.3s;
}
.wizard-progress-dot.active { background: var(--gold); box-shadow: 0 0 8px rgba(212,175,55,0.4); }
.wizard-progress-dot.done { background: #25D366; }
.wizard-body {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 2rem; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.wizard-step {
  display: none; width: 100%; max-width: 550px;
  animation: wizardFadeIn 0.4s ease;
}
.wizard-step.active { display: block; }
@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-step h2 {
  font-size: 1.5rem; font-weight: 800;
  color: var(--white); margin-bottom: 0.5rem; text-align: center;
}
.wizard-step .wizard-subtitle {
  font-size: 0.9rem; color: var(--dark-300);
  text-align: center; margin-bottom: 2rem;
}
.wizard-field {
  display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem;
}
.wizard-field label {
  font-size: 0.9rem; font-weight: 600; color: var(--dark-200);
}
.wizard-field input,
.wizard-field select {
  background: var(--dark-800); border: 1px solid var(--dark-600);
  border-radius: 14px; padding: 0.85rem 1.2rem;
  color: var(--white); font-family: 'Tajawal', sans-serif;
  font-size: 1rem; outline: none; transition: border-color 0.3s;
}
.wizard-field input:focus,
.wizard-field select:focus { border-color: var(--gold); }
.wizard-field .field-error {
  font-size: 0.8rem; color: #ff6b6b; display: none;
}
.wizard-field .field-error.show { display: block; }
.wizard-link-btn {
  background: none; border: none; color: var(--gold);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  text-decoration: underline; font-family: 'Tajawal', sans-serif;
  padding: 0;
}
/* Snackbar for whatsapp */
.wizard-snackbar {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: var(--dark-700); border: 1px solid var(--dark-600);
  border-radius: 14px; padding: 1rem 1.5rem;
  display: none; flex-direction: column; gap: 0.6rem;
  z-index: 3000; min-width: 300px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  animation: snackUp 0.3s ease;
}
.wizard-snackbar.show { display: flex; }
@keyframes snackUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Radio-style option buttons */
.wizard-options {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.wizard-option {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.2rem; background: var(--dark-800);
  border: 2px solid var(--dark-600); border-radius: 14px;
  cursor: pointer; transition: all 0.3s;
}
.wizard-option:hover { border-color: var(--dark-400); }
.wizard-option.selected {
  border-color: var(--gold);
  background: rgba(212,175,55,0.06);
}
.wizard-option-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--dark-400); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.wizard-option.selected .wizard-option-radio {
  border-color: var(--gold);
}
.wizard-option.selected .wizard-option-radio::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
}
.wizard-option-text {
  font-size: 1rem; font-weight: 600; color: var(--white);
}

/* Calendar */
.wizard-calendar {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem;
  margin-top: 1rem;
}
.wizard-cal-day {
  padding: 0.8rem 0.5rem; text-align: center;
  background: var(--dark-800); border: 2px solid var(--dark-600);
  border-radius: 12px; cursor: pointer; transition: all 0.3s;
  font-weight: 600; color: var(--white); font-size: 0.85rem;
}
.wizard-cal-day:hover { border-color: var(--dark-400); }
.wizard-cal-day.selected {
  border-color: var(--gold); background: rgba(212,175,55,0.08);
  color: var(--gold);
}
.wizard-cal-day .day-name {
  font-size: 0.7rem; color: var(--dark-300); display: block; margin-bottom: 0.3rem;
}

/* Time slots */
.wizard-time-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
  margin-top: 1rem;
}
.wizard-time-slot {
  padding: 0.8rem; text-align: center;
  background: var(--dark-800); border: 2px solid var(--dark-600);
  border-radius: 12px; cursor: pointer; transition: all 0.3s;
  font-weight: 700; color: var(--white); font-size: 0.9rem;
}
.wizard-time-slot:hover { border-color: var(--dark-400); }
.wizard-time-slot.selected {
  border-color: var(--gold); background: rgba(212,175,55,0.08);
  color: var(--gold);
}

/* Summary */
.wizard-summary {
  background: var(--dark-800); border: 1px solid var(--dark-600);
  border-radius: 16px; padding: 1.5rem; margin-top: 1rem;
}
.wizard-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--dark-700);
}
.wizard-summary-row:last-child { border-bottom: none; }
.wizard-summary-row .label {
  font-size: 0.85rem; color: var(--dark-300); font-weight: 600;
}
.wizard-summary-row .value {
  font-size: 0.95rem; color: var(--white); font-weight: 700;
}

/* Thank you */
.wizard-thankyou {
  text-align: center; padding: 2rem 0;
}
.wizard-thankyou .check-icon {
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(37,211,102,0.1); border: 3px solid #25D366;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  animation: popIn 0.5s ease;
}
@keyframes popIn {
  0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); }
}
.wizard-thankyou .check-icon svg { width: 40px; height: 40px; color: #25D366; }
.wizard-thankyou h2 { font-size: 1.6rem; color: var(--white); margin-bottom: 1rem; }
.wizard-thankyou p { color: var(--dark-300); line-height: 1.9; margin-bottom: 1.5rem; }
.wizard-countdown {
  font-size: 0.85rem; color: var(--dark-400);
}
.wizard-countdown span { color: var(--gold); font-weight: 800; }

.wizard-footer {
  padding: 1.2rem 2rem; border-top: 1px solid var(--dark-600);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.wizard-btn-back {
  padding: 0.6rem 1.5rem; background: var(--dark-700);
  border: 1px solid var(--dark-600); border-radius: 12px;
  color: var(--white); font-weight: 600; cursor: pointer;
  font-family: 'Tajawal', sans-serif; transition: all 0.3s;
}
.wizard-btn-back:hover { background: var(--dark-600); }
.wizard-btn-next {
  padding: 0.6rem 2rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none; border-radius: 12px; color: var(--dark-900);
  font-weight: 700; cursor: pointer; font-family: 'Tajawal', sans-serif;
  transition: all 0.3s;
}
.wizard-btn-next:hover { box-shadow: 0 6px 20px rgba(212,175,55,0.3); }

/* ===== My Requests Section ===== */
.sell-requests-section {
  margin-top: 3rem; padding-top: 3rem;
  border-top: 1px solid var(--dark-600);
}
.sell-requests-section h2 {
  font-size: 1.4rem; font-weight: 800;
  color: var(--white); margin-bottom: 1.5rem;
}
.sell-request-card {
  background: var(--dark-800); border: 1px solid var(--dark-600);
  border-radius: 16px; padding: 1.5rem; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; transition: all 0.3s;
}
.sell-request-card:hover { border-color: var(--dark-500); }
.sell-request-info { flex: 1; }
.sell-request-info h4 {
  font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem;
}
.sell-request-info p {
  font-size: 0.85rem; color: var(--dark-300);
}
.sell-request-status {
  padding: 0.35rem 1rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.status-pending { background: rgba(234,179,8,0.1); color: #eab308; border: 1px solid rgba(234,179,8,0.2); }
.status-approved { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.status-rejected { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.status-edit_requested { background: rgba(59,130,246,0.1); color: #3b82f6; border: 1px solid rgba(59,130,246,0.2); }
.sell-request-actions {
  display: flex; gap: 0.8rem; align-items: center;
}
.sell-request-actions button, .sell-request-actions a {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--dark-700); border: 1px solid var(--dark-600);
  color: var(--dark-300); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none;
}
.sell-request-actions .edit-btn:hover { 
  color: var(--gold); border-color: var(--gold); 
  background: rgba(212,175,55,0.08); transform: translateY(-2px);
}
.sell-request-actions .delete-btn:hover { 
  color: #ff4d4d; border-color: #ff4d4d; 
  background: rgba(255,77,77,0.08); transform: translateY(-2px);
}

/* Delete Modal Specifics */
.delete-modal-content {
  padding: 2.5rem 2rem; text-align: center;
}
.delete-modal-content p {
  color: var(--dark-200); font-size: 1rem; line-height: 1.6;
  margin-bottom: 2rem; font-weight: 500;
}
.delete-modal-actions {
  display: flex; gap: 1rem; justify-content: center;
}
.btn-delete-confirm {
  padding: 0.8rem 1.8rem; border-radius: 14px;
  background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444; font-weight: 700; cursor: pointer;
  font-family: 'Tajawal', sans-serif; transition: all 0.3s;
}
.btn-delete-confirm:hover {
  background: #ef4444; color: white; border-color: #ef4444;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}
.btn-delete-cancel {
  padding: 0.8rem 1.8rem; border-radius: 14px;
  background: var(--dark-700); border: 1px solid var(--dark-600);
  color: var(--white); font-weight: 600; cursor: pointer;
  font-family: 'Tajawal', sans-serif; transition: all 0.3s;
}
.btn-delete-cancel:hover {
  background: var(--dark-600); border-color: var(--dark-500);
}

.sell-empty-requests {
  text-align: center; padding: 4rem 2rem; color: var(--dark-400);
  background: rgba(255,255,255,0.02); border-radius: 20px;
  border: 1px dashed var(--dark-600); margin-top: 1rem;
}
.sell-empty-requests svg { width: 56px; height: 56px; margin-bottom: 1.2rem; opacity: 0.5; }

/* Responsive */
@media (max-width: 768px) {
  .sell-main-container { padding-left: 1rem; padding-right: 1rem; }
  
  .sell-hero-banner { padding: 1.5rem; margin-bottom: 2rem; }
  .sell-hero-banner h2 { font-size: 1.3rem; }
  
  .sell-cards-grid { grid-template-columns: 1fr; gap: 1rem; }
  .sell-card { padding: 1.5rem 1.2rem; }
  .sell-card-icon { width: 60px; height: 60px; margin-bottom: 1rem; }
  .sell-card-icon svg { width: 28px; height: 28px; }
  .sell-card h3 { font-size: 1.2rem; }
  .sell-card p { font-size: 0.85rem; margin-bottom: 1rem; }
  
  .sell-modal { width: 95%; max-height: 95vh; border-radius: 16px; margin: auto; }
  .sell-modal-header { padding: 1rem 1.2rem; }
  .sell-modal-header h3 { font-size: 1.1rem; }
  .sell-modal-body { padding: 1.2rem; }
  
  .sell-form-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  
  .sell-submit-bar { padding: 1rem 1.2rem; flex-direction: column-reverse; gap: 0.5rem; }
  .sell-btn-cancel, .sell-btn-submit { width: 100%; text-align: center; justify-content: center; }
  
  .wizard-header { padding: 1rem; flex-wrap: wrap; gap: 1rem; }
  .wizard-step { padding: 1rem; }
  .wizard-step h2 { font-size: 1.2rem; }
  .wizard-step .wizard-subtitle { font-size: 0.85rem; margin-bottom: 1.5rem; }
  .wizard-body { padding: 1rem; }
  
  .wizard-footer { padding: 1rem; flex-direction: column-reverse; gap: 0.5rem; }
  .wizard-btn-back, .wizard-btn-next { width: 100%; text-align: center; }
  
  .wizard-calendar { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
  .wizard-time-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  
  .sell-request-card { flex-direction: column; align-items: flex-start; padding: 1rem; gap: 0.8rem; }
  .sell-request-actions { width: 100%; justify-content: flex-end; }
}
