/**
 * Recipe Quick-View Modal Styles
 * Lightweight recipe preview
 */

/* Overlay */
.quick-view-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 20px;
  overflow-y: auto;
}

.quick-view-overlay.active {
  display: flex;
}

/* Dialog */
.quick-view-dialog {
  background: white;
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(30px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.quick-view-dialog.show {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Close Button */
.quick-view-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  line-height: 1;
}

.quick-view-close:hover {
  background: white;
  transform: rotate(90deg);
}

/* Header with Image */
.quick-view-header {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #009b3a 0%, #007a2e 100%);
  flex-shrink: 0;
}

.quick-view-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-view-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
}

/* Content */
.quick-view-content {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.quick-view-title {
  font-size: 2rem;
  font-weight: 700;
  color: #009b3a;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

/* Meta Information */
.quick-view-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

.meta-icon {
  font-size: 1.1rem;
}

/* Sections */
.quick-view-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
}

.quick-view-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Tags */
.quick-view-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.recipe-tag {
  background: #e8f5e9;
  color: #2c5f2d;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Ingredients List */
.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ingredients-list li {
  padding: 10px 16px;
  background: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #333;
}

.ingredients-list li::before {
  content: '✓';
  color: #009b3a;
  font-weight: bold;
  margin-right: 10px;
}

.ingredients-list .more-items {
  background: #e3f2fd;
  color: #1976d2;
  font-weight: 600;
  text-align: center;
}

.ingredients-list .more-items::before {
  display: none;
}

/* Action Buttons */
.quick-view-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #f0f0f0;
}

.btn-quick-action {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #009b3a;
  border-radius: 12px;
  background: white;
  color: #009b3a;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-quick-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 155, 58, 0.2);
}

.btn-quick-action.btn-favorite.active {
  background: #009b3a;
  color: white;
}

.btn-quick-action.btn-view-full {
  background: #009b3a;
  color: white;
  border-color: #009b3a;
}

.btn-quick-action.btn-view-full:hover {
  background: #007a2e;
  border-color: #007a2e;
}

.btn-icon {
  font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .quick-view-overlay {
    padding: 0;
  }

  .quick-view-dialog {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .quick-view-header {
    height: 220px;
  }

  .quick-view-content {
    padding: 24px 20px;
  }

  .quick-view-title {
    font-size: 1.5rem;
  }

  .quick-view-meta {
    gap: 12px;
  }

  .meta-item {
    font-size: 0.85rem;
  }

  .quick-view-actions {
    flex-direction: column;
  }

  .btn-quick-action {
    width: 100%;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .quick-view-dialog {
    transition: none;
  }
}
