
/* ============================================================================
   REUSABLE COMPONENT STYLES
   ============================================================================ */

/* ----------------------------------------------------------------------------
   TOOLBAR
   ---------------------------------------------------------------------------- */
.component-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------------------
   SEARCH
   ---------------------------------------------------------------------------- */
.component-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 400px;
  min-width: 200px;
}

.component-search-icon {
  position: absolute;
  left: 0.75rem;
  opacity: 0.6;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.component-search-wrap input {
  width: 100%;
  padding: 0.5rem 0.8rem 0.5rem 2.25rem;
  border: 1px solid rgba(128, 128, 128, 0.3);
  height: 35px;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.component-search-wrap input:focus {
  border-color: var(--accent-color, #0073aa);
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

/* ----------------------------------------------------------------------------
   VIEW TOGGLE
   ---------------------------------------------------------------------------- */
.component-view-toggle {
  display: flex;
  gap: 0.25rem;
  background: rgba(128, 128, 128, 0.1);
  padding: 3px;
  border-radius: 8px;
}

.component-view-toggle .view-btn {
  height: 34px;
  border: none;
  background: transparent;
  color: inherit;
  padding: 0 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.component-view-toggle .view-btn:hover {
  opacity: 0.9;
}

.component-view-toggle .view-btn.active {
  background: var(--general-background, #fff);
  opacity: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  color: var(--accent-color, #0073aa);
}

/* ----------------------------------------------------------------------------
   GRID
   ---------------------------------------------------------------------------- */
.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.component-grid.component-view-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.component-grid.component-view-list .component-card {
  flex-direction: row;
  align-items: center;
  min-height: 76px;
}

.component-grid.component-view-list .card-image {
  width: 120px;
  height: 76px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------------------
   CARD
   ---------------------------------------------------------------------------- */
.component-card {
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card, transparent);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.12s,
    border-color 0.12s,
    box-shadow 0.12s;
}

.component-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color, #0073aa);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.component-card .card-image {
  height: 140px;
  background: rgba(128, 128, 128, 0.12) center/cover no-repeat;
}

.component-card .card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.component-card .card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.component-card .card-meta {
  font-size: 0.78rem;
  opacity: 0.65;
  margin-bottom: 0.4rem;
}

.component-card .card-description {
  font-size: 0.85rem;
  opacity: 0.75;
}

.component-card .card-price {
  margin-top: auto;
  font-weight: 700;
  color: var(--accent-color, #0073aa);
}

/* ----------------------------------------------------------------------------
   PAGINATION
   ---------------------------------------------------------------------------- */
.component-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.component-pagination .page-btn {
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  min-width: 40px;
}

.component-pagination .page-btn:hover:not(:disabled) {
  background: rgba(128, 128, 128, 0.1);
  border-color: var(--accent-color, #0073aa);
}

.component-pagination .page-btn.active {
  background: var(--accent-color, #0073aa);
  color: #fff;
  border-color: var(--accent-color, #0073aa);
}

.component-pagination .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.component-pagination .page-info {
  padding: 0.5rem 0.85rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ----------------------------------------------------------------------------
   EMPTY RESULTS
   ---------------------------------------------------------------------------- */
.component-empty-results {
  text-align: center;
  padding: 2.5rem 1rem;
  opacity: 0.7;
  font-size: 0.95rem;
  border: 1px dashed rgba(128, 128, 128, 0.3);
  border-radius: 12px;
  margin-top: 1rem;
}

/* ----------------------------------------------------------------------------
   WIDGETS
   ---------------------------------------------------------------------------- */
.component-widget {
  padding: 1.25rem;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 12px;
  background: var(--bg-surface, #f9f9f9);
}

.component-widget .widget-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.component-widget .widget-description {
  font-size: 0.9em;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.component-widget .widget-progress {
  font-size: 0.95em;
  margin-bottom: 1rem;
}

.component-widget .widget-actions {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
}

.component-widget .widget-actions .btn-donate {
  display: block;
  text-align: center;
  padding: 0.6rem 1rem;
  background: #e91e63;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.component-widget .widget-actions .btn-sponsor {
  display: block;
  text-align: center;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* ----------------------------------------------------------------------------
   SPONSORS
   ---------------------------------------------------------------------------- */
.component-widget-sponsors .widget-subtitle {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.component-widget-sponsors .sponsors-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.component-widget-sponsors .sponsor-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.component-widget-sponsors .sponsor-image {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.component-widget-sponsors .sponsor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.component-widget-sponsors .sponsor-info {
  font-size: 0.9rem;
}

.component-widget-sponsors .sponsor-info a {
  font-weight: 600;
  text-decoration: none;
}

/* ----------------------------------------------------------------------------
   LAYOUT
   ---------------------------------------------------------------------------- */
.component-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.component-layout .component-main {
  flex: 1;
  min-width: 280px;
  width: 100%;
}

.component-layout .component-sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ----------------------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .component-layout {
    flex-direction: column;
  }

  .component-layout .component-sidebar {
    width: 100%;
  }

  .component-grid.component-view-list .component-card {
    flex-direction: column;
    min-height: auto;
  }

  .component-grid.component-view-list .card-image {
    width: 100%;
    height: 140px;
  }
}

@media (max-width: 600px) {
  .component-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .component-search-wrap {
    max-width: 100%;
  }

  .component-grid {
    grid-template-columns: 1fr;
  }
}
.custom-scroll {
  scrollbar-width: thin;
  scrollbar-color: #ced1d4da transparent;
}
.custom-scroll::-webkit-scrollbar {
  width: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: #ced1d4da;
  border-radius: 10px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #ced1d4da;
}
