/*
 *   Copyright (C) 2019-2020 CERN.
 *   Copyright (C) 2019-2020 Northwestern University.
 *
 * Invenio App RDM is free software; you can redistribute it and/or modify it
 * under the terms of the MIT License; see LICENSE file for more details.
 */

@import "variables.less";
@import "footer.less";
@import "frontpage.less";
@import "deposit.less";
@import "search.less";
@import "navbar.less";
@import "landing_page.less";
@import "export_page.less";

html,
body {
  color: #000;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.outer-navbar {
  background-image: @navbar_background_image;
  background-color: @navbar_background_color;
  border-color: transparent;

  #invenio-nav {
    background: transparent;
  }

  #frontpage-search-bar {
    background: transparent;
    .search-bar {
      width: 50%;
      padding: 1rem;
    }
  }

  a {
    color: #dbeaff;
  }
}

.item.right-menu {
  line-height: 44px !important;
}

.no-dots-list {
  list-style-type: none;
  margin-block-start: unset;
  margin-block-end: unset;
}

.centered {
  text-align: center;
}

.titlecase {
  text-transform: capitalize;
}

// Frontpage
.section-content-dark-bg,
.section-content-white-bg,
.section-content-light-bg {
  padding-top: calc(30px);
  padding-bottom: calc(2 * 30px);

  &:first-of-type {
    padding-top: 10px;
  }
}

.section-content-dark-bg {
  padding-top: calc(30px) !important;
  padding-bottom: calc(2 * 30px);
}

.section-content-white-bg {
  padding-top: calc(40px) !important;
  padding-bottom: calc(2 * 30px);
}

.section-content-light-bg {
  padding-top: calc(60px) !important;
  padding-bottom: calc(2 * 30px);

  &:last-of-type {
    // NOTE: Fixes spacing between content and footer in the frontpage
    // TODO: Fix body content padding/margins in general
    margin-bottom: -1rem;
  }
}

.section-content-white-bg a,
.section-content-light-bg a,
.hp-blog-section a {
  text-decoration: none;
  color: #0377cdb5;
  font-weight: 600;
}

.section-content-white-bg a:hover,
.section-content-white-bg a:focus,
.section-content-light-bg a:hover,
.section-content-light-bg a:focus,
.hp-blog-section a:hover,
.hp-blog-section a:focus {
  color: #0377cd;
}

.section-content-white-bg,
.section-content-light-bg {
  color: #333;
  width: 100%;
  text-align: justify;
  font-size: 1.2em;
  font-weight: 300;
}

.section-content-light-bg {
  background-color: rgba(173, 206, 224, 0.52);
}

.section-content-white-bg {
  background-color: #fff;
}

.section-content-white-bg h6,
.section-content-light-bg h6 {
  font-weight: 300;
  font-size: 1.4em;
  padding-bottom: 10px;
  color: #0377cd;
}

.section-title {
  -webkit-font-smoothing: antialiased;
  font-size: 2.5em;
  width: 100%;
  text-align: center;
  display: block;
  color: #0377cd;
  margin-bottom: 45px;
  font-weight: 500;
}

.section-subtitle {
  color: #0377cd !important;
  text-align: center;
  margin-bottom: 40px;
}

.invenio-rdm-project-goals {
  display: flex;
  justify-content: center;
  text-align: center;
  height: auto;

  .rdm-goal {
    width: 33.33333333%;
    padding: 1em;
  }
}

.invenio-rdm-project-collaborators {
  display: flex;
  justify-content: center;
  text-align: center;
  height: auto;
  width: 100%;

  .rdm-collaborators {
    width: 25%;
    padding: 1em;
  }
}

.get-started-section > .section-title {
  font-size: 2.65em;
}

.collaborators-logo {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
  max-width: 100% !important;
}

@media only screen and (max-width: 767px) {
  .invenio-rdm-project-goals {
    flex-direction: column !important;
    align-items: center !important;
    padding-top: 1em;

    .rdm-goal {
      width: 100%;
    }
  }
  .outer-navbar {
    #frontpage-search-bar {
      .ui.container.grid {
        width: 100% !important;
      }
      .search-bar {
        width: 90%;
      }
    }
  }
  .invenio-rdm-project-collaborators {
    flex-direction: column !important;
    align-items: center !important;
    padding-top: 1em;

    .rdm-collaborators {
      width: 100%;
    }
  }
}

.features-section img {
  max-height: 60px;
  max-width: 100%;
}
.features-section-row {
  padding-bottom: 30px;
}

.brought-to-you-section img,
.trusted-by-section img {
  max-height: 150px;
  max-width: 250px;
  margin: 20px;
  padding: 20px;
}

// Search page
.record-elem .record-title {
  color: #0377cd;
}

.record-elem .record-description {
  color: #000000;
}


.panel-free-title {
  color: #0377cd;
}

// Log-in and sign-up
.cover-page {
  background-image: @navbar_background_image;
  background-color: @navbar_background_color;
  border-color: transparent;
}

.theme.header {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

// Deposits page

.item.deposits-list-item {
  .ui.grid .checkbox-column {
    display: flex;
    align-items: center;

    .icon {
      padding-left: 0.5em;
      padding-bottom: 20px;
    }
  }

  div.status-icon {
    margin-right: 10px;
  }

  .actions > a,
  .stats > span {
    padding-right: 0.5em;
  }
}

.ui.items > .item .extra.labels-actions {
  margin-bottom: 0.75em;
}

.ui.label.access-status {
  color: #ffffff;

  &.open {
    background-color: @accessRightOpen;
  }
  &.restricted {
    background-color: @accessRightRestricted;
  }
  &.embargoed {
    background-color: @accessRightEmbargoed;
  }
  &.metadata-only {
    background-color: @accessRightMetadataOnly;
  }
}

.ui.card.borderless-facet {
  box-shadow: none;
  .content {
    border-top: none;
    .header {
      font-size: 1.1em !important;
    }
  }
}

.content.facet-content.active {
  padding-left: 21px !important;
}

.facet-subtitle {
  padding-left: 20px !important;
}

.result-options {
  height: 66px;
}

.inline-orcid {
  height: @font-size-base;
  vertical-align: middle;
  padding-right: 3px;
}

.ui.grid {
  .row.file-upload-area-row {
    padding-top: 0px;
    padding-bottom: 0px;

    .ui.basic.very.padded.segment.file-upload-area {
      border: 2px dashed #999999;
      border-radius: 5px;
      background: #eeeeee none;
      margin-top: 20px;

      &.no-files {
        margin: 0px;
      }
    }
  }

  .row.file-upload-note-row {
    padding-top: 5px;
  }

  .row.file-import-note-row {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

.ui.table {
  .ui.blue.medium.file-upload-progress {
    &.progress,
    &.success {
      &.active,
      &.disabled {
        margin-bottom: 0px;
        &.error {
          margin-bottom: 0px;
        }
      }
    }
  }

  .file-table-row {
    .file-table-header-cell {
      padding-top: 10px;
      padding-bottom: 10px;
    }
    .file-table-cell {
      padding-top: 5px;
      padding-bottom: 5px;
      &.file-upload-pending {
        text-align: center;
      }
    }
  }
}

.ui.modal {
  .header.deposit-modal-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.ui.menu {
  .active.item.license-menu-item-active {
    border-color: #2185d0;
    background-color: #2185d0;
    color: white;

    &:hover {
      border-color: #0d71bb;
      background-color: #0d71bb;
      color: white;
    }
  }
}

#record-citation {
  margin: 0px;

  label {
    font-weight: 700;
  }

  .citation-style-selector {
    display: inline-block;
    width: 157px;

    .ui.selection.dropdown {
      min-width: 112px;
      max-width: 112px;
      margin-left: 10px;
    }
  }

  .citation-error-message {
    color: #9f3a38;
  }
}

#record-subjects {
  .subject-scheme {
    &.column {
      padding-top: 5px;
      padding-bottom: 0px;
      .subject {
        margin-right: 2em;
      }
    }
  }

  .subject-label {
    &.column {
      padding-top: 10px;
      .subject {
        color:#777;
        border: 2px solid rgba(119, 119, 119, 0.56);
        border-radius: 4px;
        padding: 3.5px;
      }
    }
  }
}