/**
 * 7-pages.css - Page-Specific Styles
 * Homepage, workshop details, collections, user pages
 * Based on Laravel pages.css patterns
 */

/* ========================================
   LISTING PAGES (Workshops, Exercises, Icebreakers)
   ======================================== */

/* Main content wrapper for listing pages */
.main-content {
  min-height: 100vh;
}

/* Page header for listing pages - match homepage spacing */
.main-content .page-header {
  background: var(--color-background-subtle);
  padding-top: 60px !important;  /* Match homepage vertical position */
  padding-bottom: 24px !important;  /* Match homepage bottom spacing */
  text-align: left;
  margin-bottom: 48px;
}

.main-content .page-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content .page-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.main-content .page-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Combined Page Header with Filters */
.page-header-with-filters {
  background: var(--color-background-subtle);
  padding-top: 60px !important;  /* Match homepage vertical position */
  padding-bottom: 24px !important;  /* Match homepage bottom spacing */
  margin-bottom: 48px;
}

.header-title-filters {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;  /* Align to top instead of center */
  gap: var(--space-8);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.header-text-section {
  flex: 1 1 auto;  /* Allow it to take available space */
  max-width: 720px;
  min-width: 0;
  text-align: left;
  margin: 0;
  padding: 0;
}

.header-filters-section {
  display: flex;
  align-items: flex-start;  /* Align dropdowns to top */
  gap: var(--space-3);
  flex-shrink: 0;
  margin-left: auto;  /* Push filters to the far right */
  margin-top: 8px;  /* Add space above dropdowns */
}

.filter-results-mobile {
  display: none;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  margin-top: var(--space-2);
}

@media (max-width: 900px) {
  .header-title-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .header-filters-section {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .filter-results-mobile {
    display: block;
  }
}

@media (max-width: 480px) {
  .header-filters-section {
    margin-top: var(--space-4);
    margin-left: 0;
  }

  /* Ensure dropdowns don't overflow on mobile */
  .header-filters-section .modern-dropdown {
    flex: 1 1 auto;
    min-width: 0; /* Allow shrinking below min-width */
  }
}

/* ========================================
   HOMEPAGE
   ======================================== */

/* Homepage Hero */
.homepage {
  min-height: 100vh;
}

/* Homepage specific header adjustments - push title down */
.homepage .page-header-with-filters {
  padding-top: 80px !important;  /* Increased from 60px to push title down */
  padding-bottom: 32px !important;  /* Slightly more bottom padding for balance */
}

/* Homepage Content Sections - Add vertical spacing between card sets */
.homepage .content-section {
  margin-bottom: 80px;  /* Vertical space below each card set */
}

.homepage .content-section:last-of-type {
  margin-bottom: 0;  /* No space after last section */
}

/* Homepage Content Sections - Wrapper to constrain width and left-align */
.homepage .section-content-wrapper {
  width: 1047px;  /* 3 cards (325px) + 2 gaps (36px) = 1047px */
  max-width: 100%;
  margin: 0;  /* Left-align with page header */
}

/* Homepage section header - Grid layout to align "View All" with 3rd card */
.homepage .section-header {
  display: grid;
  grid-template-columns: repeat(3, 325px);
  gap: 36px;
  margin-bottom: 0;  /* Remove spacing between title and cards */
  padding: 0;
  align-items: center;
  border-bottom: none;
}

.homepage .section-title {
  grid-column: 1 / 3;  /* Span first 2 columns */
  font-size: 32px !important;  /* Section titles */
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.homepage .section-count {
  color: #999999;  /* Grey color for numbers */
  font-weight: 700;
}

.homepage .view-all-link {
  grid-column: 3;  /* Place in 3rd column */
  justify-content: flex-end;  /* Align to right within 3rd column */
  text-align: right;
  margin-left: auto;  /* Push to far right edge */
}

/* Homepage cards grid - 36px spacing between all cards */
.homepage .cards-grid,
.homepage .articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 325px);
  gap: 36px !important;
  column-gap: 36px !important;
  row-gap: 36px !important;
  justify-content: start;
  padding: 0 !important;  /* Remove spacing between title and cards */
}

/* Articles Section Styling */
.articles-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.articles-section .section-header-text {
  text-align: left;
  margin-bottom: var(--space-6);
}

.articles-section .section-title {
  /* Use default section-title styling to match other sections */
  margin: 0 0 var(--space-2) 0;
}

.articles-section .section-subtitle {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ========================================
   ARTICLES - Use standard .cards-grid
   ======================================== */
/* Articles now use the standard .cards-grid layout from 3-layout.css */
/* This ensures consistency with workshops, exercises, and icebreakers */

.homepage-hero {
  background: var(--gradient-brand-primary);
  color: var(--color-text-on-primary);
  padding: clamp(60px, 10vw, 100px) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.homepage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 0.3; transform: translateX(0); }
  50% { opacity: 0.5; transform: translateX(20px); }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
  letter-spacing: var(--letter-spacing-tight);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta {
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  min-width: 180px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.hero-cta-primary {
  background: var(--color-background);
  color: var(--color-brand-primary);
  box-shadow: var(--shadow-md);
}

.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text-on-primary);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ========================================
   PAGINATION (Material Design 3 Style)
   ======================================== */

/* Pagination Container */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--space-12) 0 var(--space-10) 0;
  padding: var(--space-4) 0;
}

/* Pagination List */
.pagination-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Base Pagination Link - Material Design 3 */
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 var(--space-2);
  background: transparent;
  border: none;
  border-radius: 24px;
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  gap: var(--space-2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Material Design 3 State Layer - Hover */
.pagination-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-text-primary);
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.pagination-link:hover:not(.active):not(:disabled):not([aria-disabled="true"])::before {
  opacity: 0.08;
}

/* Hover State - Non-active Links */
.pagination-link:hover:not(.active):not(:disabled):not([aria-disabled="true"]) {
  background: rgba(0, 136, 122, 0.08);
  color: var(--color-brand-primary);
}

/* Focus State for Accessibility */
.pagination-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 136, 122, 0.12);
}

/* Active Page Link - Material Design 3 Filled */
.pagination-link.active {
  background: var(--color-brand-primary);
  color: white;
  font-weight: 600;
  cursor: default;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 136, 122, 0.3);
}

.pagination-link.active::before {
  display: none;
}

/* Disabled State */
.pagination-link:disabled,
.pagination-link[aria-disabled="true"] {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  color: var(--color-text-disabled);
}

/* Previous & Next Buttons - Icon-only circular */
.pagination-link.pagination-prev,
.pagination-link.pagination-next {
  min-width: 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  font-weight: 500;
  gap: var(--space-2);
  border: 1px solid var(--color-border-light);
  background: var(--color-background);
}

.pagination-link.pagination-prev:hover:not([aria-disabled="true"]),
.pagination-link.pagination-next:hover:not([aria-disabled="true"]) {
  background: rgba(0, 136, 122, 0.08);
  border-color: var(--color-brand-primary);
}

/* Icon Sizing in Prev/Next - Material Design 3 */
.pagination-link.pagination-prev .material-symbols-outlined,
.pagination-link.pagination-next .material-symbols-outlined {
  font-size: 24px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Pagination Dots (for ellipsis) */
.pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  color: var(--color-text-tertiary);
  font-weight: 700;
  pointer-events: none;
  user-select: none;
  letter-spacing: 2px;
}

/* ========================================
   RESPONSIVE PAGINATION - Material Design 3
   ======================================== */

/* Tablet Breakpoint (≤768px) */
@media (max-width: 768px) {
  .pagination {
    margin: var(--space-10) 0 var(--space-8) 0;
  }

  .pagination-list {
    gap: 4px;
  }

  .pagination-link {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 13px;
  }

  /* Hide text in prev/next on tablet, show only icons */
  .pagination-link.pagination-prev span:not(.material-symbols-outlined),
  .pagination-link.pagination-next span:not(.material-symbols-outlined) {
    display: none;
  }

  .pagination-link.pagination-prev,
  .pagination-link.pagination-next {
    min-width: 44px;
    width: 44px;
    height: 44px;
  }

  /* Maintain icon size on tablet for touch targets */
  .pagination-link.pagination-prev .material-symbols-outlined,
  .pagination-link.pagination-next .material-symbols-outlined {
    font-size: 22px;
  }
}

/* Mobile Breakpoint (≤480px) */
@media (max-width: 480px) {
  .pagination {
    margin: var(--space-8) 0 var(--space-6) 0;
  }

  .pagination-list {
    gap: 2px;
  }

  .pagination-link {
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 12px;
  }

  .pagination-link.pagination-prev,
  .pagination-link.pagination-next {
    min-width: 40px;
    width: 40px;
    height: 40px;
  }

  /* Maintain readable icon size on mobile */
  .pagination-link.pagination-prev .material-symbols-outlined,
  .pagination-link.pagination-next .material-symbols-outlined {
    font-size: 20px;
  }

  /* Simplify pagination on very small screens - show max 5 items */
  .pagination-link:nth-child(n+7) {
    display: none;
  }
}

/* ========================================
   WORKSHOP DETAIL PAGE
   ======================================== */

.workshop-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: var(--color-background-subtle);
  min-height: 100vh;
  position: relative;
}

.workshop-detail-loading,
.workshop-detail-error {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  font-size: 18px;
  color: #666;
}

.workshop-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

.back-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #212121;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
}

.workshop-detail-title-section {
  flex: 1;
}

.workshop-detail-title-section h1 {
  font-size: 48px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #333;
}

.workshop-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

.category-badge {
  background: var(--color-brand-primary);
  color: var(--color-text-on-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.duration-badge {
  background: var(--color-background-lighter);
  color: var(--color-text-secondary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workshop-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.action-icon {
  padding: 10px;
  font-size: 18px;
  color: #666;
  transition: all 0.2s ease;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;  /* WCAG 2.1 AA touch target minimum */
  min-height: 44px;
}

.action-icon:hover {
  background-color: #f5f5f5;
  color: #333;
}

.workshop-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  margin-bottom: 25px;
}

.tab {
  background: none;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.tab:hover {
  color: #333;
  background-color: #f9f9f9;
}

.tab.active {
  color: var(--category-color, var(--color-success));
  border-bottom-color: var(--category-color, var(--color-success));
}

.workshop-content {
  margin-bottom: 50px;
}

.overview-content,
.agenda-content,
.steps-content,
.related-content {
  line-height: 1.6;
  margin-top: 30px;
}

.overview-section,
.objective-section,
.outcomes-section,
.participants-section,
.materials-section,
.instructions-section {
  margin-bottom: 25px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.overview-section:hover,
.objective-section:hover,
.outcomes-section:hover,
.participants-section:hover,
.materials-section:hover,
.instructions-section:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.overview-section h2,
.objective-section h2,
.outcomes-section h2,
.participants-section h2,
.materials-section h2,
.agenda-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.overview-text p {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.7;
}

.participants-list,
.materials-list {
  list-style: none;
  padding: 0;
}

.participants-list li,
.materials-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: #555;
}

.participants-list li::before,
.materials-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: bold;
}

/* Floating Action Button */
.floating-submit-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-success);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
}

.floating-submit-btn:hover {
  background: #45a049;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.floating-submit-btn:active {
  transform: scale(0.95);
}

.floating-submit-btn .material-icons {
  font-size: 28px;
}

/* ========================================
   COLLECTIONS PAGE
   ======================================== */

.collections-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.collection-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.collection-description {
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
}

.collection-content {
  margin-top: 30px;
}

/* Collections Grid - Uses standard dashboard card layout (same as icebreakers) */
/* Collection cards use the dashboard-card.white class with grey border */

/* CTA Section */
.cta-section {
  background: var(--color-background-subtle);
  border-radius: 20px;
  padding: 60px 40px;
  margin-top: 60px;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-icon {
  font-size: 64px;
  color: var(--color-brand-primary);
  margin-bottom: 16px;
  display: block;
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
}

.cta-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 32px 0;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

.exercises-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Responsive Collections - Uses standard dashboard card responsive styles */
@media (max-width: 768px) {
  .cta-section {
    padding: 40px 24px;
    margin-top: 40px;
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-description {
    font-size: 16px;
  }
}

/* ========================================
   MY WORKSHOPR (USER DASHBOARD)
   ======================================== */

.my-workshopr-page,
.dashboard-page,
.myworkshopr-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: var(--color-background-subtle);  /* Grey background like other pages */
  min-height: 100vh;
}

.my-workshopr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--color-border-light);
}

.my-workshopr-title-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.my-workshopr-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-brand-primary);
}

.my-workshopr-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-brand-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
}

.my-workshopr-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 4px 0;
}

.my-workshopr-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin: 0;
}

.settings-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: white;
  border: 2px solid var(--color-border-light);
  border-radius: 12px;
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.settings-link:hover {
  border-color: var(--color-brand-primary);
  background: var(--color-background-light);
  transform: translateY(-2px);
}

.settings-link .material-icons {
  font-size: 20px;
}

.tab-navigation {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--color-border-light);
  overflow-x: auto;
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.tab-button:hover {
  color: var(--color-brand-primary);
}

.tab-button.active {
  color: var(--color-brand-primary);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-brand-primary);
}

.tab-button .material-icons {
  font-size: 20px;
}

.tab-count {
  background: var(--color-background-subtle);
  color: var(--color-text-secondary);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.tab-button.active .tab-count {
  background: var(--color-brand-primary);
  color: white;
}

.tab-content-container {
  min-height: 400px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   SETTINGS PAGE
   ======================================== */

/* Settings page intentionally narrower for form readability */
.settings-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--color-border-light);
}

.settings-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 4px 0;
}

.settings-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin: 0;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 2px solid var(--color-border-light);
  border-radius: 8px;
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.back-link:hover {
  border-color: var(--color-brand-primary);
  background: var(--color-background-light);
}

.back-link .material-icons {
  font-size: 20px;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.settings-section {
  background: white;
  border: 2px solid var(--color-border-light);
  border-radius: 12px;
  padding: 32px;
}

.section-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.section-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
}

.section-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0;
}

.avatar-upload-section {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.current-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-brand-primary);
}

.current-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.current-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-brand-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 600;
}

.avatar-upload-controls {
  flex: 1;
}

.upload-hint {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 8px 0 0 0;
}

.danger-section {
  border-color: var(--color-danger);
}

.danger-zone {
  padding: 20px;
  background: #fff5f5;
  border: 1px solid var(--color-danger);
  border-radius: 8px;
}

.danger-zone p {
  font-size: 14px;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--color-danger);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: var(--color-danger-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger .material-icons {
  font-size: 20px;
}

/* ========================================
   LOADING & EMPTY STATES
   ======================================== */

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--color-brand-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.not-found {
  text-align: center;
  padding: 60px 20px;
}

.not-found h2 {
  color: #333;
  margin-bottom: 16px;
}

.not-found p {
  color: #666;
  margin-bottom: 24px;
}

.empty-state {
  text-align: center;
  padding: var(--space-12);
  color: var(--color-text-tertiary);
}

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

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .exercises-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Intermediate (769px-1100px) - Fix homepage grid breaking */
@media (max-width: 1100px) and (min-width: 769px) {
  /* Homepage section header - 2 column layout */
  .homepage .section-header {
    grid-template-columns: repeat(2, 325px);
    gap: 24px;
  }

  .homepage .section-title {
    grid-column: 1 / 2;  /* Span only first column */
  }

  .homepage .view-all-link {
    grid-column: 2;  /* Place in 2nd column */
  }

  /* Homepage cards grid - 2 column layout */
  .homepage .cards-grid,
  .homepage .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px !important;
  }

  /* Section content wrapper - adjust for 2 columns */
  .homepage .section-content-wrapper {
    width: 674px;  /* 2 cards (325px) + 1 gap (24px) = 674px */
    max-width: 100%;
  }
}

/* Tablet (≤768px) */
@media (max-width: 768px) {
  /* Homepage */
  .homepage-hero {
    padding: clamp(40px, 8vw, 60px) var(--space-4);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta {
    width: 100%;
    max-width: 320px;
  }

  /* Homepage content sections - smaller vertical spacing on mobile */
  .homepage .content-section {
    margin-bottom: 48px;  /* Reduced spacing on mobile */
  }

  /* Homepage section wrapper - full width on mobile */
  .homepage .section-content-wrapper {
    width: 100%;
  }

  /* Homepage section headers - stack on mobile */
  .homepage .section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .homepage .section-title {
    grid-column: unset;
    font-size: 24px !important;  /* Smaller on mobile */
  }

  .homepage .view-all-link {
    grid-column: unset;
    justify-content: flex-start;
  }

  /* Homepage cards grid - responsive on mobile */
  .homepage .cards-grid,
  .homepage .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Workshop Detail */
  .workshop-detail {
    padding: 15px;
  }

  .workshop-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .workshop-detail-title-section h1 {
    font-size: 36px;
  }

  .workshop-actions {
    align-self: flex-end;
  }

  .workshop-tabs {
    flex-direction: column;
  }

  .tab {
    text-align: left;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .tab.active {
    border-left-color: var(--category-color, var(--color-success));
    border-bottom-color: transparent;
  }

  .floating-submit-btn {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .floating-submit-btn .material-icons {
    font-size: 24px;
  }

  /* Collections */
  .exercises-grid {
    grid-template-columns: 1fr;
  }

  /* My Workshopr */
  .my-workshopr-page {
    padding: 24px 16px;
  }

  .my-workshopr-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .my-workshopr-title {
    font-size: 24px;
  }

  .settings-link {
    width: 100%;
    justify-content: center;
  }

  /* Settings */
  .settings-page {
    padding: 24px 16px;
  }

  .settings-header {
    flex-direction: column;
    gap: 16px;
  }

  .back-link {
    width: 100%;
    justify-content: center;
  }

  .settings-section {
    padding: 24px 16px;
  }

  .avatar-upload-section {
    flex-direction: column;
    text-align: center;
  }

  .settings-title {
    font-size: 24px;
  }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  /* Homepage */
  .hero-content h1 {
    font-size: 2rem;
  }

  /* Workshop Detail */
  .workshop-detail-title-section h1 {
    font-size: 32px;
  }

  .workshop-badges {
    flex-wrap: wrap;
  }

  /* My Workshopr */
  .tab-button {
    font-size: 14px;
    padding: 10px 12px;
  }

  .tab-button span:not(.material-icons):not(.tab-count) {
    display: none;
  }

  .my-workshopr-avatar {
    width: 48px;
    height: 48px;
  }

  .avatar-placeholder {
    font-size: 20px;
  }

  .my-workshopr-title {
    font-size: 20px;
  }

  .my-workshopr-subtitle {
    font-size: 14px;
  }

  /* Settings */
  .settings-title {
    font-size: 20px;
  }

  .current-avatar {
    width: 80px;
    height: 80px;
  }

  .current-avatar .avatar-placeholder {
    font-size: 32px;
  }

  /* Pagination */
  .page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }
}

/* ========================================
   FILTERS SECTION - Material Design 3 Outlined
   ======================================== */

.filters-section {
  background: white;
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-5) 0;
  margin-bottom: var(--space-6);
}

/* Override container padding for filters section to allow dropdowns at far right */
.filters-section .container {
  padding-right: 0;  /* Remove right padding - dropdowns extend to absolute right edge */
  padding-left: 0;   /* Remove left padding - controlled by .filter-results instead */
}

.filters-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-6);  /* 24px gap between left and right sections */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  text-align: right;
}

.filter-results {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  justify-self: start;
  padding-left: 20px;  /* Maintain left spacing */
}

.filters-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;  /* Align flex items to the right */
  gap: var(--space-3);  /* 12px gap between filter elements */
  justify-self: end;  /* Align to right edge of grid cell */
  margin-left: auto;  /* Force right alignment */
  padding-right: 4px;  /* Minimal 4px spacing from viewport edge (design system compliance) */
}

/* Search Filter Container - Modern Rounded Design */
.search-filter {
  display: flex;
  align-items: center;
  gap: 0;  /* Removed gap to create integrated search component */
  background: white;
  border: 2px solid var(--color-border-light);
  border-radius: 24px;  /* Pill-shaped design */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-filter:hover {
  border-color: var(--color-text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.search-filter:focus-within {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 4px rgba(0, 136, 122, 0.1), 0 2px 12px rgba(0, 136, 122, 0.15);
  transform: translateY(-1px);
}

/* Material Design 3 Outlined Search Input - Integrated Left Side */
.filter-search.modern-search {
  min-width: 240px;
  height: 48px;
  padding: 0 20px;
  border: none;  /* Removed - now part of parent .search-filter border */
  border-radius: 24px 0 0 24px;  /* Rounded left side (pill-shaped) */
  background: transparent;
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  font-weight: 400;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-search.modern-search::placeholder {
  color: var(--color-text-tertiary);
}

.filter-search.modern-search:hover {
  /* Hover handled by parent .search-filter */
}

.filter-search.modern-search:focus {
  outline: none;
  /* Focus border handled by parent .search-filter:focus-within */
}

/* Search Button - Integrated Right Side */
.btn-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;  /* Removed - now part of parent .search-filter border */
  border-left: 1px solid var(--color-border-light);  /* Divider from input */
  border-radius: 0 24px 24px 0;  /* Rounded right side (pill-shaped) */
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.btn-search:hover {
  background: rgba(0, 136, 122, 0.08);
  color: var(--color-brand-primary);
}

.btn-search .material-symbols-outlined {
  font-size: 20px;
}

/* Material Design 3 Outlined Select - Modern Rounded */
.filter-select.modern-select {
  min-width: 140px;
  max-width: 100%;  /* Prevent overflow on small screens */
  height: 48px;
  padding: 0 44px 0 20px;
  border: 2px solid var(--color-border-light);
  border-radius: 24px;  /* Pill-shaped design */
  background: white;
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.filter-select.modern-select:hover {
  border-color: var(--color-text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.filter-select.modern-select:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 4px rgba(0, 136, 122, 0.1), 0 2px 12px rgba(0, 136, 122, 0.15);
  transform: translateY(-1px);
}

/* Clear Filters Button - Modern Rounded */
.btn-clear-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--color-border-light);
  border-radius: 50%;  /* Fully circular */
  background: white;
  color: var(--color-text-secondary);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-clear-filters:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: var(--color-danger);
  color: var(--color-danger);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
  transform: translateY(-1px) scale(1.05);
}

.btn-clear-filters .material-symbols-outlined {
  font-size: 20px;
}

/* Responsive Filters - Increased Breakpoint for Longer Horizontal Layout */
@media (max-width: 900px) {  /* Changed from 768px to 900px */
  .filters-bar {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .filter-results {
    justify-self: center;
    order: 2;
    padding-left: 0;  /* Center alignment on mobile */
  }

  .filters-group {
    justify-self: stretch;
    order: 1;
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 4px;  /* Maintain minimal right spacing on mobile */
    padding-left: 4px;   /* Add symmetrical left spacing on mobile */
  }

  .search-filter {
    flex: 1 1 100%;
    min-width: 100%;
    border-radius: 24px;  /* Maintain pill shape */
  }

  .filter-search.modern-search {
    width: 100%;
    min-width: 0;
    border-radius: 24px 0 0 24px;  /* Maintain pill shape */
  }

  .btn-search {
    border-radius: 0 24px 24px 0;  /* Maintain pill shape */
  }

  .filter-select.modern-select {
    flex: 1;
    min-width: 120px;  /* Changed from 0 for better mobile display */
    border-radius: 24px;  /* Maintain pill shape */
  }

  .btn-clear-filters {
    border-radius: 50%;  /* Maintain circular shape */
  }
}

@media (max-width: 480px) {
  .filters-group {
    flex-wrap: wrap;
    gap: var(--space-2);
    padding-right: 4px;  /* Maintain minimal right spacing on small mobile */
    padding-left: 4px;   /* Symmetrical spacing on small mobile */
  }

  .search-filter {
    flex: 1 1 100%;
    margin-bottom: var(--space-2);
    border-radius: 24px;  /* Maintain pill shape on mobile */
  }

  .filter-search.modern-search {
    width: 100%;
    border-radius: 24px 0 0 24px;  /* Maintain pill shape */
  }

  .btn-search {
    width: 44px;
    height: 44px;
    border-radius: 0 24px 24px 0;  /* Maintain pill shape */
  }

  .filter-select.modern-select {
    min-width: calc(50% - 4px);
    border-radius: 24px;  /* Maintain pill shape on mobile */
  }

  .btn-clear-filters {
    width: 44px;
    height: 44px;
    border-radius: 50%;  /* Maintain circular shape on mobile */
  }
}

/* Very small mobile devices (≤375px) - Full width dropdowns */
@media (max-width: 375px) {
  .filter-select.modern-select {
    min-width: 0;
    width: 100%;  /* Full width on very small screens */
  }
}

/* ========================================
   WORKSHOP DETAIL PAGE - TAB INTERFACE (MATCHES LARAVEL)
   ======================================== */

/* Main Container - Match listings grid width (1200px) */
.workshop-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Inter, sans-serif;
}

/* Header with Back Button and Actions */
.detail-header {
  margin-bottom: 20px;
}

.detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.back-btn:hover {
  background-color: #f5f5f5;
}

.detail-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.action-btn:hover {
  background-color: #f5f5f5;
}

/* Workshop Header */
.workshop-header {
  margin-bottom: 30px;
}

.workshop-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.workshop-detail-page .workshop-badges {
  display: flex;
  gap: 12px;
}

.workshop-detail-page .badge {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workshop-detail-page .badge.category {
  background-color: var(--color-brand-primary);
  color: var(--color-text-on-primary);
}

.workshop-detail-page .badge.duration {
  background-color: var(--color-background-lighter);
  color: var(--color-text-secondary);
}

/* Comment Count Badge */
.comment-count {
  background: #8e24aa;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
  min-width: 16px;
  text-align: center;
  display: inline-block;
}

/* Tab Navigation */
.workshop-detail-page .tab-navigation {
  display: flex;
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 30px;
}

.workshop-detail-page .tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  color: #666;
}

.workshop-detail-page {
  --category-color: #10B981; /* Default fallback */
}

.workshop-detail-page .tab-btn.active {
  color: #1a1a1a;
  border-bottom-color: var(--active-tab-color, var(--category-color));
}

.workshop-detail-page .tab-btn:hover {
  color: #1a1a1a;
}

/* Exercise Detail Page - Dynamic Category Color for Active Tab */
.exercise-detail-page {
  --category-color: #00887A; /* Default fallback color */
}

.exercise-detail-page .tab-btn {
  padding: 15px 20px;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  color: #666;
}

.exercise-detail-page .tab-btn.active {
  color: #1a1a1a;
  border-bottom-color: var(--active-tab-color, var(--category-color));
}

.exercise-detail-page .tab-btn:hover {
  color: #1a1a1a;
}

/* Icebreaker Detail Page - Dynamic Category Color for Active Tab */
.icebreaker-detail-page {
  --category-color: #9B59B6; /* Default fallback */
}

.icebreaker-detail-page .tab-btn {
  padding: 15px 20px;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  color: #666;
}

.icebreaker-detail-page .tab-btn.active {
  color: #1a1a1a;
  border-bottom-color: var(--active-tab-color, var(--category-color));
}

.icebreaker-detail-page .tab-btn:hover {
  color: #1a1a1a;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Overview Content */
.session-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.workshop-detail-page .overview-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 15px 0;
  color: #1a1a1a;
}

.workshop-detail-page .overview-content h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px 0;
  color: #1a1a1a;
}

.workshop-detail-page .overview-content ul {
  margin: 10px 0 20px 20px;
  line-height: 1.6;
}

.workshop-detail-page .overview-content li {
  margin-bottom: 8px;
  color: #4a4a4a;
}

.overview-description p {
  line-height: 1.6;
  color: #4a4a4a;
  margin-bottom: 20px;
}

/* Phase Cards */
.phase-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.phase-card h4 {
  color: #1a1a1a;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

.phase-card ul {
  margin: 10px 0 0 20px;
}

.phase-card li {
  margin-bottom: 8px;
  color: #4a4a4a;
  line-height: 1.5;
}

.phase-card p {
  margin-bottom: 10px;
  color: #4a4a4a;
  line-height: 1.6;
}

/* Related Content - Match .cards-grid layout for consistency */
.workshop-detail-page .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(325px, 100%), 1fr));
  gap: clamp(20px, 3vw, 28px);
  justify-content: center;
  margin-bottom: 30px;
}

.workshop-detail-page .related-item {
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.workshop-detail-page .related-item h5 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.workshop-detail-page .related-item a {
  color: #10B981;
  text-decoration: none;
}

.workshop-detail-page .related-item a:hover {
  text-decoration: underline;
}

.workshop-detail-page .related-item p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

/* Skeleton Loading */
.skeleton-loader {
  display: grid;
  gap: 16px;
}

.skeleton-list-item {
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #f8f9fa;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-list-title {
  height: 20px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 8px;
  width: 70%;
}

.skeleton-list-subtitle {
  height: 16px;
  background: #e0e0e0;
  border-radius: 4px;
  width: 90%;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Comments Section */
.comments-section {
  padding: 20px 0;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.comments-header h4 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.comments-actions {
  display: flex;
  gap: 8px;
}

.workshop-detail-page .btn-secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.workshop-detail-page .btn-secondary:hover {
  background: #e5e5e5;
  color: #333;
}

.workshop-detail-page .btn-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #4caf50;
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.workshop-detail-page .btn-primary:hover:not(:disabled) {
  background: #45a049;
}

.workshop-detail-page .btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Add Comment Form */
.add-comment-section {
  margin-bottom: 32px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.comment-form {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  flex-shrink: 0;
}

.comment-input-container {
  flex: 1;
}

.comment-input-container textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.comment-input-container textarea:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.comment-input-container textarea::placeholder {
  color: #999;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

/* Comments List */
.comments-list {
  space-y: 16px;
}

.comment-item {
  padding: 16px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.comment-item:hover {
  border-color: #d0d0d0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
  pointer-events: none;  /* Clarify non-interactive element */
}

.comment-author-name {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.comment-date {
  font-size: 12px;
  color: #888;
}

.comment-text {
  color: #555;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 12px;
}

.comment-actions-list {
  display: flex;
  gap: 16px;
  align-items: center;
}

.comment-action {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.comment-action:hover {
  color: #555;
}

.comment-action.liked {
  color: #e91e63;
}

/* Empty State */
.comments-empty {
  text-align: center;
  padding: 40px 20px;
}

.workshop-detail-page .empty-state {
  color: #666;
}

.workshop-detail-page .empty-state .material-symbols-outlined {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 16px;
}

.workshop-detail-page .empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.workshop-detail-page .empty-state p {
  font-size: 14px;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .workshop-detail-page {
    padding: 15px;
  }

  .workshop-detail-page .workshop-badges {
    flex-wrap: wrap;
  }

  .workshop-detail-page .tab-navigation {
    overflow-x: auto;
    white-space: nowrap;
  }
}
