/* Ultra Hızlı Minimalist Kahve Falı - Google Core Web Vitals Optimized */

/* Critical CSS - Inline olarak yüklenecek */
:root {
  --primary: #ae4cd1;
  --primary-hover: #9a3bb8;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #ffffff;
  --bg-gray: #f7fafc;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: all 0.2s ease;
}

/* Base Styles - Minimal */
* {
  box-sizing: border-box;
}

#cf-wizard {
  max-width: 480px;
  margin: 2rem auto;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Step Management - Fast */
.cf-step {
  display: none;
  padding: 2rem 1.5rem;
  text-align: center;
}

.cf-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Progress Bar - Minimal */
.cf-progress-container {
  width: 100%;
  height: 6px;
  background: var(--bg-gray);
  position: relative;
}

.cf-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #ff6b9d);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

/* Typography - Clean & Fast */
.cf-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.cf-step p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cf-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* Buttons - Large & Touch-Friendly */
.cf-btn, [data-action="next"], [data-action="restart"] {
  background: #ff9800;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem auto 0 auto;
  outline: none;
}

.cf-btn:hover, .cf-btn:focus {
  background: #e65100;
  transform: scale(1.04);
}

.cf-btn svg {
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.5em;
}

.cf-btn-desc {
  text-align: center;
  color: #ff9800;
  font-size: 1rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.cf-btn:disabled, [data-action="next"]:disabled {
  background: #cbd5e0 !important;
  cursor: not-allowed !important;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
  pointer-events: none;
}

.cf-btn:not(:disabled), [data-action="next"]:not(:disabled) {
  background: var(--primary) !important;
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Fotoğraf seçimi sonrası buton için minimal stil */
.cf-step[data-step="5"] .cf-btn:not([disabled]) {
  background: var(--primary) !important;
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* En agresif override - fotoğraf seçimi sonrası */
.cf-step[data-step="5"] .cf-btn {
  position: relative;
  z-index: 9999;
  background: var(--primary) !important;
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  box-shadow: var(--shadow) !important;
  user-select: auto !important;
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
}

/* Options - Clean */
.cf-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0;
}

.cf-options label {
  background: var(--bg-light);
  border: 2px solid var(--border);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  min-height: 60px;
}

.cf-options label:hover {
  border-color: var(--primary);
  background: #f8f0ff;
}

.cf-options label.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.02);
}

.cf-options input[type="radio"] {
  width: 1.2em;
  height: 1.2em;
  margin: 0;
  accent-color: var(--primary);
}

/* Date Selects - Modern */
.cf-date-selects {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.cf-date-selects select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--bg-light);
  min-width: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.cf-date-selects select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(174, 76, 209, 0.1);
}

.cf-date-selects select.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Upload Area - Clean */
.cf-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  background: var(--bg-gray);
  margin: 1.5rem 0;
  transition: var(--transition);
}

.cf-upload-area:hover {
  border-color: var(--primary);
  background: #f8f0ff;
}

.cf-upload-area.dragover {
  border-color: var(--primary);
  background: #f8f0ff;
  transform: scale(1.02);
}

#cf-photo-preview {
  max-width: 220px;
  max-height: 220px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

/* Result Area */
#cf-result {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--primary);
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--bg-gray);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.6;
}

/* WhatsApp Button */
#whatsapp-share {
  background: #25D366 !important;
  color: white !important;
}

#whatsapp-share:hover {
  background: #128C7E !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  #cf-wizard {
    margin: 1rem;
    border-radius: var(--radius);
  }
  
  .cf-step {
    padding: 1.5rem 1rem;
  }
  
  .cf-title {
    font-size: 1.5rem;
  }
  
  .cf-step p {
    font-size: 1rem;
  }
  
  .cf-btn, [data-action="next"], [data-action="restart"] {
    min-width: 180px;
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
  
  .cf-options label {
    font-size: 0.95rem;
    padding: 0.875rem 1.25rem;
  }
  
  .cf-date-selects {
    gap: 0.75rem;
  }
  
  .cf-date-selects select {
    min-width: 90px;
    font-size: 0.95rem;
  }
  
  .cf-upload-area {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  #cf-wizard {
    margin: 0.5rem;
    border-radius: 0;
  }
  
  .cf-step {
    padding: 1rem 0.75rem;
  }
  
  .cf-title {
    font-size: 1.375rem;
  }
  
  .cf-btn, [data-action="next"], [data-action="restart"] {
    min-width: 160px;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
  }
  
  .cf-options label {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
  
  .cf-date-selects select {
    min-width: 80px;
    font-size: 0.9rem;
  }
}

/* Performance Optimizations */
.cf-btn, .cf-options label, .cf-date-selects select {
  will-change: transform;
  backface-visibility: hidden;
}

/* Focus States for Accessibility */
.cf-btn:focus, .cf-options label:focus, .cf-date-selects select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  #cf-wizard {
    box-shadow: none;
    border: 1px solid var(--border);
  }
  
  .cf-btn, [data-action="next"], [data-action="restart"] {
    display: none;
  }
}

button.cf-btn-burc, .cf-btn.cf-btn-burc {
  background: #009688 !important;
  color: #fff !important;
}
