/* ==========================================================================
   Together Index Page - List & Cards
   ========================================================================== */

/* ==========================================================================
   Page Layout
   ========================================================================== */
.together-page {
  padding: 0;
  padding-bottom: var(--spacing-page-bottom);
}

/* ==========================================================================
   Header
   ========================================================================== */
.together-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-section);
}

.together-header-title {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0;
}

/* Header button uses .header-btn from components/button.css */

/* ==========================================================================
   Search Bar
   ========================================================================== */
.together-search-form {
  margin-bottom: var(--spacing-section);
}

.together-search {
  position: relative;
  width: 100%;
}

.together-search svg {
  position: absolute;
  left: var(--spacing-3);
  top: 50%;
  transform: translateY(-50%);
  width: var(--icon-size-sm);
  height: var(--icon-size-sm);
  pointer-events: none;
}

.together-search-input {
  width: 100%;
  height: var(--avatar-size-md);
  padding: 0 var(--spacing-section) 0 var(--btn-icon-size);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-base);
  outline: none;
  box-sizing: border-box;
}

.together-search-input::placeholder {
  color: var(--color-text-secondary);
}

.together-search-input:focus {
  border-color: var(--color-fill-dark);
}

/* ==========================================================================
   Category Filter Tabs
   Filter button styles in components/filter_button.css
   ========================================================================== */
.together-filter {
  display: flex;
  gap: var(--spacing-list-sm);
  overflow-x: auto;
  padding-bottom: var(--spacing-1);
  margin-bottom: var(--spacing-section-gap);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.together-filter::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   Section
   ========================================================================== */
.together-section {
  margin-bottom: var(--spacing-section-gap);
}

.together-section-title {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin: 0 0 var(--spacing-list-md) 0;
}

.together-section-title--muted {
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Cards Container
   ========================================================================== */
.together-cards-large {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-list-lg);
}

.together-cards-small {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-list-md);
}

/* Web (desktop): 2-column grid */
@media (min-width: 768px) {
  .web-layout .together-cards-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-4);
  }

  .web-layout .together-cards-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-4);
  }
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.together-empty {
  text-align: center;
  padding: var(--spacing-6) 0;
}

.together-empty-text {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  margin: 0 0 var(--spacing-list-sm) 0;
}

.together-empty-link {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  text-decoration: underline;
}

/* Project Card styles moved to components/project_card.css */
/* Search Mode styles moved to components/together_search.css */
