/* Base body font */
body {
  font-family: var(--font-family-base);
}

/* Main Container */
.main-container {
  min-height: 100vh;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  flex-direction: column;
}

/* When the app shell is present (authenticated), add spacing for fixed header + bottom nav */
.main-container--with-shell {
  padding-top: calc(56px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* Page Container Styles */
.page-container {
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.page-container--narrow {
  max-width: 600px;
}

.page-container--medium {
  max-width: 800px;
}

.page-container--wide {
  max-width: 1200px;
}

/* Page Header Styles */
.page-header {
  text-align: center;
  margin-bottom: 1rem;
}

.page-header--left {
  text-align: left;
}

.page-header__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-default);
  margin-bottom: 0.5rem;
}

.page-header__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.page-header__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.page-header__back-link:hover {
  color: var(--color-primary-dark);
}

/* Page Content */
.page-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Empty State */

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state__icon {
  width: 4rem;
  height: 4rem;
  color: var(--text-muted);
  margin: 0 auto 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-default);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .page-header__title {
    font-size: 1.75rem;
  }

  .page-header__subtitle {
    font-size: 0.9375rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
  .page-header__title {
    font-size: 1.5rem;
  }

  .page-header__subtitle {
    font-size: 0.875rem;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  .page-header__title {
    font-size: 1.375rem;
  }

  .page-header__subtitle {
    font-size: 0.8125rem;
  }
}
