/**
 * Calculator Project Suggester - Modal CSS
 * För projektförslag när många artiklar finns i korgen
 */

/* ==================== OVERLAY ==================== */

.project-suggestion-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-suggestion-overlay.show {
  opacity: 1;
}

/* ==================== MODAL ==================== */

.project-suggestion-modal {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-suggestion-overlay.show .project-suggestion-modal {
  transform: scale(1) translateY(0);
}

/* ==================== ICON ==================== */

.suggestion-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.suggestion-icon i {
  font-size: 36px;
  color: white;
}

/* ==================== CONTENT ==================== */

.project-suggestion-modal h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin: 0 0 12px 0;
}

.suggestion-description {
  font-size: 15px;
  color: #6b7280;
  text-align: center;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

/* ==================== BENEFITS ==================== */

.suggestion-benefits {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.benefit-item:not(:last-child) {
  border-bottom: 1px solid #d1fae5;
}

.benefit-item i {
  font-size: 18px;
  color: #10b981;
  flex-shrink: 0;
}

.benefit-item span {
  font-size: 14px;
  color: #065f46;
  font-weight: 500;
}

/* ==================== FORM ==================== */

.suggestion-form {
  margin-bottom: 24px;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  color: #1f2937;
  transition: all 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ==================== ACTIONS ==================== */

.suggestion-actions {
  display: flex;
  gap: 12px;
}

.btn-suggestion-secondary,
.btn-suggestion-primary {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-suggestion-secondary {
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.btn-suggestion-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.btn-suggestion-secondary:active {
  transform: translateY(0);
}

.btn-suggestion-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-suggestion-primary:hover {
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

.btn-suggestion-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-suggestion-primary i {
  font-size: 16px;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .project-suggestion-modal {
    padding: 24px;
    max-width: 100%;
  }
  
  .project-suggestion-modal h2 {
    font-size: 20px;
  }
  
  .suggestion-description {
    font-size: 14px;
  }
  
  .suggestion-actions {
    flex-direction: column;
  }
  
  .btn-suggestion-secondary,
  .btn-suggestion-primary {
    width: 100%;
  }
}

/* ==================== ANIMATIONS ==================== */

@keyframes slideInUp {
  from {
    transform: scale(0.9) translateY(40px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
