@use '../../../shared/styles/settings-shared' as settings;

.main-container {
  @include settings.settings-page-container;
}

@include settings.settings-page-header;

.settings-title {
  @include settings.settings-page-title;
  margin-bottom: 0.75rem;
}

.settings-description {
  @include settings.settings-page-description;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.preferences-section {
  @media (min-width: 768px) {
    padding: 0 1rem;
  }
}

.section-header {
  @include settings.settings-section-header;
  margin-bottom: 1rem;
}

.section-title {
  @include settings.settings-section-title;
  margin: 0 0 0.5rem 0;
}

.section-description {
  @include settings.settings-section-description;
}

.settings-card {
  @include settings.settings-card;

  app-epub-reader-preferences-component,
  app-pdf-reader-preferences-component,
  app-cbx-reader-preferences-component {
    display: block;
    width: 100%;
  }
}

.setting-control {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;

  @media (max-width: 768px) {
    align-items: flex-start;
    width: 100%;
  }
}

.radio-group {
  display: flex;
  gap: 1.5rem;

  @media (max-width: 768px) {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  label {
    font-size: settings.$settings-section-description-size;
    color: var(--p-text-color);
    cursor: pointer;
  }
}

.button-group {
  @include settings.settings-button-group;
}
