/* Featured Notebooks Styles */
.featured-section {
  max-width: 1400px;
  margin: 0 auto;
  /* padding: var(--spacing-xl) var(--spacing-lg); */
  min-height: auto;
  padding-bottom: 2rem;
}

.featured-title {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: var(--spacing-xl);
  text-align: center;
  letter-spacing: -0.5px;
}

.category-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2.5rem;
  padding-top: 1.5rem;
  letter-spacing: -0.3px;
}

.notebooks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
  margin-top: var(--spacing-lg);
}

.notebook-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notebook-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #096a2e, #8ABE53);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notebook-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  border-color: rgba(9, 106, 46, 0.3);
  transform: translateY(-10px) scale(1.01);
}

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

.notebook-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  letter-spacing: -0.3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notebook-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.notebook-meta span {
  background: #f8f9fa;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.875rem;
  color: #555;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.notebook-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  /* margin-bottom: 0.75rem;
  padding-bottom: 0.75rem; */
  border-bottom: 1px solid #efefef;
}


.notebook-info-card {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #e8e8e8;
  background-color: #fafbfc;
  margin-bottom: 0.75rem;
}

.notebook-publisher {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notebook-collection {
  font-size: 0.8rem;
  color: #096a2e;
  font-weight: 500;
  display: block;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notebook-collection:hover {
  color: #0a7d35;
  text-decoration: underline;
}

.notebook-collections-multiple {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.notebook-collections-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #e8f5e9;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  color: #2e7d32;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.collections-label {
  font-size: 0.75rem;
  color: #2e7d32;
  font-weight: 500;
  line-height: 1.2;
}

.modal-publisher-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.notebook-category {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
  color: #2e7d32 !important;
  font-weight: 600;
}

.notebook-rating {
  background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%) !important;
  color: #f57c00 !important;
  font-weight: 600;
}

.notebook-notes,
.notebook-views {
  background: #e3f2fd !important;
  color: #1976d2 !important;
}

.notebook-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #096a2e 0%, #0a7d35 100%);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(9, 106, 46, 0.25);
  text-align: center;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  height: 44px;
}

.notebook-link:hover {
  background: linear-gradient(135deg, #0a7d35 0%, #096a2e 100%);
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(9, 106, 46, 0.35);
  transform: translateY(-2px);
}

.modal-trigger {
  display: none; /* Removed - using .notebook-link instead */
}

.modal-trigger:hover {
  display: none; /* Removed - using .notebook-link instead */
}

/* Notebook actions container */
.notebook-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: auto;
}

.notebook-actions .notebook-link,
.notebook-actions .modal-trigger {
  flex: 1;
}

/* Follow button on cards */
.follow-btn-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}

.follow-btn-card:hover:not(:disabled) {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.follow-btn-card:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.follow-btn-card.following {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.25);
}

.follow-btn-card.following:hover:not(:disabled) {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.35);
}


.no-notebooks {
  text-align: center;
  color: #666;
  font-size: 1.25rem;
  margin-top: 4rem;
  padding: 3rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #ddd;
}

/* Responsive design */
@media (max-width: 1024px) {
  /* .featured-section {
    padding: 2rem 1.5rem;
  } */

  .notebooks-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* .featured-section {
    padding: 1.5rem 1rem;
  } */

  .featured-title {
    font-size: 2rem;
  }

  .category-title {
    font-size: 1.75rem;
  }

  .notebooks-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .notebook-card {
    padding: 1.5rem;
  }

  .notebook-title {
    font-size: 1.25rem;
  }
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-notification.toast-success {
  background-color: #28a745;
  color: white;
}

.toast-notification.toast-error {
  background-color: #dc3545;
  color: white;
}

.toast-notification.toast-info {
  background-color: #17a2b8;
  color: white;
}
