/*
========================================
 PaylessWatts Solar Form (React)
 PlayStation White Card Selection Styles
 Sophisticated Steel & Charcoal Aesthetic
========================================
*/

/* Card Group Container - PlayStation Layout */
.card-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

/* PlayStation Option Card */
.option-card {
  position: relative;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #e2e8f0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.08), 
    0 4px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  height: 100%;
  min-height: 140px;
}

.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.option-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.12), 
    0 8px 16px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-color: #94a3b8;
  background: rgba(248, 250, 252, 0.98);
}

.option-card:hover::before {
  opacity: 1;
}

.option-card.selected {
  border-color: #334155;
  background: rgba(241, 245, 249, 0.98);
  box-shadow: 
    0 0 0 4px rgba(51, 65, 85, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.12), 
    0 8px 16px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.option-card.selected::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.05) 0%, transparent 50%, rgba(51, 65, 85, 0.02) 100%);
}

/* Hide radio button visually but keep it accessible */
.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Card Label (entire clickable area) */
.option-card label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
}

/* PlayStation Card Icon */
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #64748b;
  background: #f1f5f9;
  height: 4rem;
  width: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.option-card:hover .card-icon {
  color: #475569;
  background: #e2e8f0;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.option-card.selected .card-icon {
  color: white;
  background: linear-gradient(135deg, #334155, #475569);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(51, 65, 85, 0.3);
}

/* PlayStation Card Title */
.card-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: #1e293b;
  margin-bottom: 0.25rem;
  transition: all 300ms ease;
  letter-spacing: -0.01em;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.option-card.selected .card-title {
  color: #334155;
  font-weight: 700;
}

/* Card Subtitle (optional) */
.card-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.4;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.option-card.selected .card-subtitle {
  color: #475569;
}

/* PlayStation Selected Card Indicator */
.option-card.selected::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, #334155, #475569);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  box-shadow: 0 4px 12px rgba(51, 65, 85, 0.3);
  z-index: 1;
  animation: checkmarkAppear 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes checkmarkAppear {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Timeline Options (timeline step) - PlayStation Style */
.timeline-options {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 800px;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #334155 #e2e8f0;
}

/* PlayStation Scrollbar for Webkit browsers */
.timeline-options::-webkit-scrollbar {
  height: 8px;
}

.timeline-options::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.timeline-options::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #334155, #475569);
  border-radius: 4px;
}

.timeline-options::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #1e293b, #334155);
}

/* PlayStation Timeline Option */
.timeline-option {
  position: relative;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  flex: 0 0 auto;
  width: 160px;
  min-width: 160px;
}

.timeline-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.timeline-option:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.08),
    0 6px 12px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-color: #94a3b8;
  background: rgba(248, 250, 252, 0.98);
}

.timeline-option:hover::before {
  opacity: 1;
}

.timeline-option.selected {
  border-color: #334155;
  background: rgba(241, 245, 249, 0.98);
  box-shadow: 
    0 0 0 4px rgba(51, 65, 85, 0.1),
    0 12px 24px rgba(0, 0, 0, 0.08),
    0 6px 12px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.timeline-option.selected::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.05) 0%, transparent 50%, rgba(51, 65, 85, 0.02) 100%);
}

.timeline-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.timeline-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  width: 100%;
  height: 100%;
  min-height: 130px;
}

/* PlayStation Timeline Icon */
.option-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: #64748b;
  background: #f1f5f9;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.timeline-option:hover .option-icon {
  color: #475569;
  background: #e2e8f0;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.timeline-option.selected .option-icon {
  color: white;
  background: linear-gradient(135deg, #334155, #475569);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(51, 65, 85, 0.3);
}

/* PlayStation Timeline Text */
.option-text {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.01em;
}

.timeline-option.selected .option-text {
  color: #334155;
  font-weight: 700;
}

/* PlayStation Checkmark indicator for selected option */
.option-checkmark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.95);
  transition: all 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.timeline-option.selected .option-checkmark,
.timeline-option input:checked ~ .option-container .option-checkmark {
  background: linear-gradient(135deg, #334155, #475569);
  border-color: #334155;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  box-shadow: 0 4px 12px rgba(51, 65, 85, 0.3);
  animation: checkmarkAppear 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Responsive adjustments - PlayStation Mobile */
@media (max-width: 768px) {
  .card-group {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .option-card {
    min-height: 120px;
  }
  
  .option-card label {
    padding: 1.5rem 1rem;
  }
  
  .card-icon {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .card-title {
    font-size: 1rem;
  }
  
  .timeline-options {
    padding-bottom: 0.75rem;
    max-width: 100%;
    gap: 1rem;
  }
  
  .timeline-option {
    width: 140px;
    min-width: 140px;
  }
  
  .timeline-option label {
    padding: 1.25rem;
    min-height: 110px;
  }
  
  .option-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .option-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .card-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .option-card {
    min-height: 100px;
  }
  
  .option-card label {
    padding: 1.25rem 1rem;
  }
  
  .card-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .card-title {
    font-size: 0.95rem;
  }
  
  .timeline-option {
    width: 120px;
    min-width: 120px;
  }
  
  .timeline-option label {
    padding: 1rem;
    min-height: 100px;
  }
  
  .option-icon {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  
  .option-text {
    font-size: 0.8rem;
  }
}

/* ========================================
   GAMER DARK THEME INTEGRATION
   ======================================== */

.gamer-dark-skin .card-group {
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.gamer-dark-skin .option-card {
  background: linear-gradient(135deg, rgba(28, 28, 30, 0.95), rgba(15, 23, 42, 0.9)) !important;
  border: 2px solid #334155 !important;
  border-radius: 1.25rem !important;
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.3), 
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: all 300ms cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

.gamer-dark-skin .option-card::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%, rgba(59, 130, 246, 0.02) 100%) !important;
}

.gamer-dark-skin .option-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4), 
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  border-color: #3b82f6 !important;
  background: linear-gradient(135deg, rgba(44, 44, 46, 0.98), rgba(30, 41, 59, 0.95)) !important;
}

.gamer-dark-skin .option-card.selected {
  border-color: #3b82f6 !important;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.2), rgba(15, 23, 42, 0.95)) !important;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.4), 
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px) !important;
}

.gamer-dark-skin .option-card.selected::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 50%, rgba(59, 130, 246, 0.05) 100%) !important;
}

.gamer-dark-skin .card-icon {
  color: #94a3b8 !important;
  background: #1e293b !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  transition: all 300ms cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

.gamer-dark-skin .option-card:hover .card-icon {
  color: #cbd5e1 !important;
  background: #334155 !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

.gamer-dark-skin .option-card.selected .card-icon {
  color: white !important;
  background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4) !important;
}

.gamer-dark-skin .card-title {
  color: #ffffff !important;
  font-weight: 600 !important;
  transition: all 300ms ease !important;
}

.gamer-dark-skin .option-card.selected .card-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.gamer-dark-skin .card-subtitle {
  color: #94a3b8 !important;
}

.gamer-dark-skin .option-card.selected .card-subtitle {
  color: #cbd5e1 !important;
}

.gamer-dark-skin .option-card.selected::after {
  background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

/* Timeline Options Dark Theme */
.gamer-dark-skin .timeline-options {
  scrollbar-color: #3b82f6 #334155 !important;
}

.gamer-dark-skin .timeline-options::-webkit-scrollbar-track {
  background: #1e293b !important;
}

.gamer-dark-skin .timeline-options::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #3b82f6, #1e40af) !important;
}

.gamer-dark-skin .timeline-options::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #60a5fa, #3b82f6) !important;
}

.gamer-dark-skin .timeline-option {
  border: 2px solid #334155 !important;
  background: linear-gradient(135deg, rgba(28, 28, 30, 0.95), rgba(15, 23, 42, 0.9)) !important;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: all 300ms cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

.gamer-dark-skin .timeline-option::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%, rgba(59, 130, 246, 0.02) 100%) !important;
}

.gamer-dark-skin .timeline-option:hover {
  transform: translateY(-3px) !important;
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.4),
    0 6px 12px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  border-color: #3b82f6 !important;
  background: linear-gradient(135deg, rgba(44, 44, 46, 0.98), rgba(30, 41, 59, 0.95)) !important;
}

.gamer-dark-skin .timeline-option.selected {
  border-color: #3b82f6 !important;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.2), rgba(15, 23, 42, 0.95)) !important;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.2),
    0 12px 24px rgba(0, 0, 0, 0.4),
    0 6px 12px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px) !important;
}

.gamer-dark-skin .timeline-option.selected::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 50%, rgba(59, 130, 246, 0.05) 100%) !important;
}

.gamer-dark-skin .option-icon {
  color: #94a3b8 !important;
  background: #1e293b !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  transition: all 300ms cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

.gamer-dark-skin .timeline-option:hover .option-icon {
  color: #cbd5e1 !important;
  background: #334155 !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

.gamer-dark-skin .timeline-option.selected .option-icon {
  color: white !important;
  background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4) !important;
}

.gamer-dark-skin .option-text {
  color: #ffffff !important;
  font-weight: 600 !important;
  transition: color 300ms ease !important;
}

.gamer-dark-skin .timeline-option.selected .option-text {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.gamer-dark-skin .option-checkmark {
  border: 2px solid #334155 !important;
  background: rgba(28, 28, 30, 0.95) !important;
  transition: all 300ms cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

.gamer-dark-skin .timeline-option.selected .option-checkmark,
.gamer-dark-skin .timeline-option input:checked ~ .option-container .option-checkmark {
  background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
} 