@import "./common-var.css";

.annual-reports-section {

}

.year-filter-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 50px;

  @media (max-width: 767px) {
    margin-bottom: 30px;
  }

  .year-filter {
    min-width: 280px;
    max-width: 350px;

    @media (max-width: 576px) {
      min-width: 100%;
      max-width: 100%;
    }
  }
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 50px;
  row-gap: 50px;

  @media (max-width: 1440px) {
    gap: 40px;
    row-gap: 40px;
  }

  @media (max-width: 1024px) {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    row-gap: 45px;
  }

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 30px;
    row-gap: 40px;
  }
}

.report-card {
  display: flex;
  align-items: center;
  gap: 21px;

  @media (max-width: 576px) {
 
    gap: 20px;
    align-items: flex-start;
  }

  &.hidden {
    display: none;
  }

  .report-image {
    width: 258px;
    height: 347px;
    flex-shrink: 0;

    @media (max-width: 1024px) {
      width: 220px;
      height: 296px;
    }

    @media (max-width: 767px) {
      width: 200px;
      height: 269px;
    }

    @media (max-width: 576px) {
      width: 100%;
      height: auto;
      max-width: 150px;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 10px;
      border: 1px solid #EBEBEB;

      @media (max-width: 576px) {
        height: auto;
        aspect-ratio: 258 / 347;
      }
    }
  }

  .report-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    flex: 1;

    @media (max-width: 576px) {
      width: 100%;
    }

    .report-title {
      color: var(--text-default-color);
      font-family: var(--font-type1);
      font-size: 24px;
      font-style: normal;
      font-weight: 700;
      line-height: 32px;
      margin: 0;

      @media (max-width: 1024px) {
        font-size: 22px;
        line-height: 30px;
      }

      @media (max-width: 767px) {
        font-size: 20px;
        line-height: 28px;
      }
    }

    .report-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
      width: 100%;

      .report-link {
        display: flex;
        align-items: center;
        gap: 15px;
        color: var(--text-default-color);
        font-family: var(--font-type1);
        font-size: 17px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        text-decoration: none;
        transition: all 0.3s ease;

        &:hover {
          color: var(--secondary-color);

          svg path {
            fill: var(--secondary-color);
            transition: all 0.3s ease;
          }
        }

        svg {
          width: 25px;
          height: 25px;
          flex-shrink: 0;

          path {
            fill: #AE927E;
            transition: all 0.3s ease;
          }
        }

        span {
          flex: 1;
        }
      }
    }
  }
}

/* RTL Support */
[dir="rtl"] {
  .year-filter-wrapper {
    justify-content: flex-start;
  }
  .report-card {  
    .report-content {
      align-items: flex-start;

      }
    }
  }

/* Animation for filtered items */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.report-card {
  animation: fadeIn 0.3s ease-in-out;
}
