/* Info Modal Styles */
.info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 600px;
  max-height: 80vh;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.4em;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #e9ecef;
  color: #333;
}

.modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

.modal-image {
  position: relative;
}

.modal-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.image-credit {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: rgb(0, 0, 0);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
}

.modal-info {
  padding: 20px;
}

.info-section {
  margin-bottom: 20px;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section h4 {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-section p {
  margin: 0;
  line-height: 1.6;
  color: #aaaaaa;
}

.review-item {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.review-item:last-child {
  margin-bottom: 0;
}

.review-author {
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
  font-size: 0.9em;
}

.review-text {
  color: #666;
  line-height: 1.5;
}

.no-reviews {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* Card intro styles */
.card-intro {
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.view-more {
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
}

.view-more:hover {
  color: #0056b3;
}

/* Dark mode support */
.dark .modal-content {
  background: #2d3748;
  color: #ffffff;
}

.dark .modal-header {
  background: #4a5568;
  border-bottom-color: #4a5568;
}

.dark .modal-header h3 {
  color: #000000;
}

.dark .modal-close {
  color: #a0aec0;
}

.dark .modal-close:hover {
  background: #4a5568;
  color: #000000;
}

.dark .info-section h4 {
  color: #000000;
}

.dark .info-section p {
  color: #8ca8cc;
}

.dark .review-item {
  background: #4a5568;
}

.dark .review-author {
  color: #000000;
}

.dark .review-text {
  color: #000000;
}