// Browse Autorzy page specific styles
// Extracted from inline styles in autorzy.html and autorzy_modern_bordered.html

// Simple autorzy.html page styles
.autorzy-page {
  // Pagination container alignment
  .autorzy-pagination-container {
    text-align: right;
  }
}

// Modern autorzy page styles (autorzy_modern_bordered.html)
.autorzy-modern {
  // Modern header section
  .autorzy-header {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;

    h2 {
      color: #2c3e50;
      margin-bottom: 5px;

      .fi-torsos-all {
        margin-right: 10px;
      }
    }

    .autorzy-subtitle {
      color: #7f8c8d;
      margin: 0;
      font-size: 0.9rem;
    }
  }

  // Centered search section
  .autorzy-search-wrapper {
    margin-top: 25px;
    text-align: center;

    .autorzy-search-form {
      display: inline-block;
      max-width: 500px;
      width: 100%;

      .autorzy-search-group {
        background: #f8f9fa;
        border-radius: 6px;
        border: 1px solid #e9ecef;

        .autorzy-search-label {
          background: transparent;
          border: none;
          color: #7f8c8d;
        }

        .autorzy-search-input {
          background: transparent;
          border: none;
          font-size: 1rem;
          padding: 12px;
        }
      }
    }
  }

  // Letter index section
  .autorzy-letter-index {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 30px;

    .autorzy-letter-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;

      .autorzy-letter-pill {
        display: inline-block;
        padding: 8px 16px;
        border-radius: 20px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
        background: #f8f9fa;
        color: #2c3e50;
        border: 1px solid #e9ecef;

        &:hover:not(.active):not(.disabled) {
          background: rgba($primary-color, 0.08);
          border-color: rgba($primary-color, 0.3);
          color: rgba($primary-color, 0.9);
        }

        &.active {
          background: $primary-color;
          color: white;
          box-shadow: 0 2px 4px rgba($primary-color, 0.3);
          border: 1px solid $primary-color;
        }

        &.disabled {
          color: #bdc3c7;
          background: #f8f9fa;
          border-color: #e9ecef;
          opacity: 0.5;
          cursor: not-allowed;
          pointer-events: none;
        }

        &.autorzy-letter-single {
          min-width: 40px;
          text-align: center;
          padding: 8px 12px;
        }
      }
    }
  }

  // Author cards
  .autorzy-author-card {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
    position: relative;

    &:hover {
      border-color: rgba($primary-color, 0.6);
      background: #fafbfc;

      .autorzy-author-icon {
        color: rgba($primary-color, 0.4);
      }
    }

    .autorzy-author-icon {
      position: absolute;
      top: 20px;
      right: 20px;
      color: #bdc3c7;
      transition: color 0.2s ease;

      .fi-torso {
        font-size: 1.5rem;
      }
    }

    .autorzy-author-name {
      margin-bottom: 8px;

      a {
        color: #2c3e50;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.1rem;
        line-height: 1.4;
        transition: color 0.2s ease;

        &:hover {
          color: $primary-color;
        }
      }
    }

    .autorzy-author-institution {
      color: #7f8c8d;
      font-size: 0.9rem;
      line-height: 1.3;
      padding-top: 8px;
      border-top: 1px solid #f8f9fa;

      .fi-home {
        margin-right: 5px;
        color: #bdc3c7;
      }
    }
  }

  // Warning callout for no results
  .autorzy-no-results {
    text-align: center;
    padding: 40px;
    border-radius: 8px;

    h4 {
      color: #856404;
      margin-bottom: 15px;

      .fi-alert {
        margin-right: 10px;
      }
    }

    p {
      margin-bottom: 20px;
      color: #6c5c00;
    }

    .autorzy-back-button {
      background: #ffc107;
      color: #212529;

      .fi-arrow-left {
        margin-right: 5px;
      }
    }
  }

  // Modern pagination
  .autorzy-pagination {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-top: 30px;
    text-align: center;

    .autorzy-pagination-info {
      margin-bottom: 15px;
      color: #7f8c8d;
      font-size: 0.9rem;
    }

    ul.pagination {
      display: inline-flex;
      gap: 5px;
      margin: 0;

      li {
        list-style: none;

        .autorzy-page-btn,
        .autorzy-nav-btn {
          display: inline-flex;
          align-items: center;
          padding: 8px 12px;
          background: #f8f9fa;
          color: #2c3e50;
          border-radius: 6px;
          text-decoration: none;
          border: 1px solid #e9ecef;
          transition: all 0.2s ease;

          &:hover {
            background: #e9ecef;
          }

          .fi-arrow-left {
            margin-right: 5px;
          }

          .fi-arrow-right {
            margin-left: 5px;
          }
        }

        .autorzy-page-btn {
          min-width: 40px;
          text-align: center;
        }

        .autorzy-current-page {
          display: inline-block;
          padding: 8px 12px;
          background: $primary-color;
          color: white;
          border-radius: 6px;
          font-weight: 600;
        }

        .autorzy-page-dots {
          padding: 8px 4px;
          color: #bdc3c7;
        }
      }
    }
  }
}
