@use "font";
@use "rem";
@use "responsive";
@use "theme";

/* Copyright (C) 2019, 2020, 2021, 2022, 2023, 2024, 2025 Dnote contributors
 *
 * This file is part of Dnote.
 *
 * Dnote is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Dnote is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Dnote.  If not, see <https://www.gnu.org/licenses/>.
 */

.note-page {
  // min-height: calc(100vh - 57px);
  background: theme.$lighter-gray;
  flex-grow: 1;
  flex-basis: 0;

  //  .inner {
  //    display: flex;
  //    justify-content: center;
  //    padding-top: rem(40px);
  //    padding-bottom: rem(40px);
  //
  //    @include breakpoint(md) {
  //      padding-top: rem(52px);
  //      padding-bottom: rem(52px);
  //    }
  //  }

  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: rem.rem(12px) rem.rem(16px);
    border-bottom: 1px solid theme.$border-color;
  }
  .header-left,
  .header-right {
    display: flex;
    align-items: center;
  }

  .book-icon {
    vertical-align: middle;
  }

  .content-wrapper {
    padding: rem.rem(12px) rem.rem(16px);
  }

  .collapsed-content {
    color: theme.$light-gray;
  }

  .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    @include font.font-size('small');
    padding: rem.rem(12px) rem.rem(16px);
  }

  .ts {
    color: theme.$light-gray;
  }
  .ts-lead {
    display: none;
    @include responsive.breakpoint(md) {
      display: inline;
    }
  }

  .match {
    display: inline-block;
    background: #f7f77d;
  }

  .book-label {
    @include font.font-size('medium');
    font-weight: 600;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: theme.$black;

    a {
      color: inherit;

      &:hover {
        color: inherit;
      }
    }
  }

  // header
  .header {
    .book-label {
      max-width: rem.rem(200px);
      margin-left: rem.rem(12px);

      @include responsive.breakpoint(sm) {
        max-width: rem.rem(200px);
      }
      @include responsive.breakpoint(md) {
        max-width: rem.rem(420px);
      }
      @include responsive.breakpoint(lg) {
        max-width: rem.rem(600px);
      }
    }
  }
}
