/**
 * SlidevOverview styles
 * Layout with fixed-size banner and content containers
 */

/* Main container - centers everything */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  min-height: calc(100vh - var(--ifm-navbar-height));
}

/* ============================================
   Banner Section - Fixed width container
   ============================================ */
.bannerWrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 2rem;
}

.banner {
  width: 100%;
  max-width: 800px;
  text-align: center;
  padding: 0 1rem;
}

.title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ifm-heading-color);
  margin: 0 0 0.75rem 0;
}

.titleIcon {
  color: var(--ifm-color-primary);
  flex-shrink: 0;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--ifm-color-emphasis-700);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Back button - positioned absolutely to left of banner */
.backButton {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--ifm-color-emphasis-300);
  background: var(--ifm-background-color);
  color: var(--ifm-color-emphasis-700);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.backButton:hover {
  border-color: var(--ifm-color-primary-contrast-background);
  color: var(--ifm-color-primary-contrast-background);
  background: var(--ifm-color-primary-lightest);
  transform: translateY(-50%) scale(1.05);
  text-decoration: none;
}

/* Controls - positioned absolutely to right of banner */
.controls {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--ifm-background-color);
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.controlButton {
  padding: 0.5rem;
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: 6px;
  background: var(--ifm-background-color);
  color: var(--ifm-color-emphasis-700);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.controlButton:hover {
  border-color: var(--ifm-color-primary-contrast-background);
  color: var(--ifm-color-primary-contrast-background);
  background: var(--ifm-color-primary-lightest);
}

/* ============================================
   Dev Mode Warning
   ============================================ */
.devModeWarning {
  width: 100%;
  max-width: 1200px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  background: var(--ifm-color-warning-contrast-background);
  border-left: 4px solid var(--ifm-color-warning);
}

.warningTitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--ifm-color-warning-darkest);
}

.warningIcon {
  width: 24px;
  height: 24px;
}

.warningText {
  margin: 0;
  color: var(--ifm-color-warning-contrast-foreground);
  line-height: 1.6;
}

.warningText code {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  margin: 0 0.25rem;
  background: var(--ifm-code-background);
  border-radius: 4px;
  font-family: var(--ifm-font-family-monospace);
  font-size: 0.9rem;
}

/* ============================================
   Content Container - Fixed width
   ============================================ */
.contentContainer {
  width: 100%;
  max-width: 1200px;
  min-height: 400px;
}

/* Grid View - items wrap and fill available space */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* List View - full width items */
.list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

/* ============================================
   Empty State
   ============================================ */
.emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ifm-color-emphasis-600);
}

.emptyStateIcon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.emptyStateTitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ifm-color-emphasis-700);
}

.emptyStateText {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.emptyStateCode {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--ifm-code-background);
  border-radius: 6px;
  font-family: var(--ifm-font-family-monospace);
  font-size: 0.9rem;
  color: var(--ifm-color-emphasis-900);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 992px) {
  .bannerWrapper {
    flex-direction: column;
    gap: 1rem;
    padding: 0 60px; /* Space for side buttons */
  }

  .backButton {
    position: absolute;
    left: 50px;
  }

  .controls {
    position: absolute;
    right: 50px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .bannerWrapper {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    position: relative;
  }

  .banner {
    padding: 0;
    order: 2;
  }

  .title {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .backButton {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    order: 1;
    align-self: flex-start;
  }

  .backButton:hover {
    transform: scale(1.05);
  }

  .controls {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    order: 3;
    align-self: center;
  }

  .devModeWarning {
    padding: 1rem;
  }

  .grid {
    gap: 1rem;
  }

  .contentContainer {
    min-height: 200px;
  }
}
