/* “Göstəricilərimiz”
 * Desktop: Title/Block 4979:22563 + Statistics/Card 9093:46320–46383.
 * Mobile: wrapper 5257:19387 + inner 5257:19393.
 */

.aayda-statistics {
  display: none;
}

.aayda-statistics__card-value--mobile {
  display: none;
}

/* The card is the link, at every breakpoint. Declared once, outside the two layout blocks, because
 * none of the design's geometry hangs off it: the layouts size and place the card by the same class
 * and never named its element. display:block only states what the grid already forces, so the rule
 * reads the same if a card is ever taken out of the grid. */
.aayda-statistics__card {
  display: block;
  color: inherit;
  /* Otherwise the anchor underlines the period, the figure and the caption it wraps. */
  text-decoration: none;
}

/* Keyboard only: the pointer already has the Desktop hover, and a ring on click is not in the
 * design. Same token and offset as the activity directions cards above this row. */
.aayda-statistics__card:focus-visible {
  outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
  outline-offset: 2px;
}

/* Where the card leads, for screen readers. Real text rather than an aria-label, so the link is
 * announced as its period, its figure, its unit and its caption and then this; taken out of the flow
 * so the design's fixed card height and its flex gaps are untouched. */
.aayda-statistics__card-destination {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

@media (min-width: 1416px) {
  .aayda-statistics {
    display: block;
    width: 100%;
    max-width: var(--aayda-container-desktop);
    margin-inline: auto;
    /* Activity panel bottom 3018 → title y 3114. */
    padding-top: 96px;
    background: var(--aayda-colors-surface-disabled);
    font-family: var(--aayda-typography-font-primary);
    color: var(--aayda-colors-text);
  }

  .aayda-statistics__inner {
    width: var(--aayda-container-content);
    height: 399px;
    margin-left: 84px;
  }

  .aayda-statistics__title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--aayda-numbers-spacing-16);
    width: 383px;
    height: 92px;
    overflow: visible;
  }

  .aayda-statistics__badge {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--aayda-numbers-spacing-4);
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    height: 28px;
    padding: 3px 15px 3px 11px;
    margin: 0;
    font-size: var(--aayda-typography-size-12);
    font-weight: var(--aayda-typography-weight-medium);
    line-height: var(--aayda-typography-line-height-12);
    letter-spacing: var(--aayda-typography-letter-spacing-12);
    color: var(--aayda-colors-text);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid var(--aayda-colors-base-white);
    border-radius: 28px;
  }

  .aayda-statistics__badge-icon {
    display: block;
    flex-shrink: 0;
    width: 15px;
    height: 14px;
  }

  .aayda-statistics__badge-icon img {
    display: block;
    width: 11px;
    height: 11px;
    margin: 2px 0 0 2px;
    max-width: none;
  }

  .aayda-statistics__title {
    box-sizing: border-box;
    width: 383px;
    height: 48px;
    margin: 0;
    overflow: visible;
    font-size: var(--aayda-typography-size-40);
    font-weight: var(--aayda-typography-weight-semi-bold);
    line-height: var(--aayda-typography-line-height-40);
    letter-spacing: var(--aayda-typography-letter-spacing-40);
    color: var(--aayda-colors-text);
  }

  .aayda-statistics__cards {
    display: grid;
    grid-template-columns: 300px 24px 300px 22px 300px 26px 300px;
    align-items: start;
    width: 1272px;
    height: 273px;
    margin-top: 34px;
  }

  .aayda-statistics__card {
    position: relative;
    grid-column: 1;
    width: 300px;
    height: 273px;
    margin: 0;
    overflow: visible;
  }

  .aayda-statistics__card:nth-child(2) {
    grid-column: 3;
  }

  .aayda-statistics__card:nth-child(3) {
    grid-column: 5;
  }

  .aayda-statistics__card:nth-child(4) {
    grid-column: 7;
  }

  .aayda-statistics__card-bar {
    position: absolute;
    top: 238px;
    left: 0;
    z-index: 0;
    width: 300px;
    height: 35px;
    background: var(--aayda-colors-green-600);
    border-radius: 12px;
    transition: height 300ms ease-out;
  }

  .aayda-statistics__card-content {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--aayda-numbers-spacing-16);
    width: 300px;
    height: 270px;
    padding: 110px 20px 16px;
    overflow: visible;
    background: var(--aayda-colors-surface-subtle);
    border-radius: 12px;
    box-shadow: inset 0 0 0 2px var(--aayda-colors-base-white);
    transition:
      background-color 300ms ease-out,
      box-shadow 300ms ease-out;
  }

  .aayda-statistics__card-label {
    position: absolute;
    top: 16px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: var(--aayda-numbers-spacing-112);
    width: 270px;
    height: 45px;
  }

  .aayda-statistics__card-period {
    width: 108px;
    height: 20px;
    margin: 0;
    font-size: var(--aayda-typography-size-14);
    font-weight: var(--aayda-typography-weight-bold);
    line-height: var(--aayda-typography-line-height-14);
    letter-spacing: var(--aayda-typography-letter-spacing-14);
    color: var(--aayda-colors-navy-700);
    white-space: nowrap;
    transition: color 300ms ease-out;
  }

  .aayda-statistics__card-arrow {
    display: block;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    overflow: hidden;
  }

  .aayda-statistics__card-arrow img {
    display: block;
    width: 45px;
    height: 45px;
    max-width: none;
    transform-origin: 21.252px 21.748px;
    transition:
      transform 300ms ease-out,
      filter 300ms ease-out;
  }

  .aayda-statistics__card-value {
    box-sizing: border-box;
    width: 260px;
    height: 60px;
    margin: 0;
    font-size: var(--aayda-typography-size-40);
    line-height: var(--aayda-typography-line-height-stat-40);
    letter-spacing: var(--aayda-typography-letter-spacing-stat-40);
    color: var(--aayda-colors-text);
    transition: color 300ms ease-out;
  }

  .aayda-statistics__card-value-number {
    font-weight: var(--aayda-typography-weight-bold);
  }

  .aayda-statistics__card-value-space {
    font-weight: var(--aayda-typography-weight-semi-bold);
  }

  .aayda-statistics__card-value-unit {
    font-weight: var(--aayda-typography-weight-regular);
  }

  .aayda-statistics__card-divider {
    flex-shrink: 0;
    width: 260px;
    height: 1px;
    background-image: repeating-linear-gradient(
      to right,
      #8c8c8c 0 2px,
      transparent 2px 4px
    );
    -webkit-mask-image: radial-gradient(
      50% 800% at 50% 50%,
      #8c8c8c 0%,
      rgb(80 80 80 / 0.05) 100%
    );
    mask-image: radial-gradient(
      50% 800% at 50% 50%,
      #8c8c8c 0%,
      rgb(80 80 80 / 0.05) 100%
    );
  }

  .aayda-statistics__card-description {
    box-sizing: border-box;
    width: 260px;
    height: 52px;
    margin: 0;
    font-size: var(--aayda-typography-size-16);
    font-weight: var(--aayda-typography-weight-regular);
    line-height: var(--aayda-typography-line-height-16);
    letter-spacing: var(--aayda-typography-letter-spacing-16);
    color: var(--aayda-colors-text);
    transition: color 300ms ease-out;
  }

  .aayda-statistics__card:hover .aayda-statistics__card-content {
    background: var(--aayda-colors-navy-900);
    box-shadow: none;
  }

  .aayda-statistics__card:hover .aayda-statistics__card-bar {
    height: 37px;
  }

  .aayda-statistics__card:hover .aayda-statistics__card-value {
    color: var(--aayda-colors-green-600);
  }

  .aayda-statistics__card:hover .aayda-statistics__card-description {
    color: var(--aayda-colors-base-white);
  }

  .aayda-statistics__card:hover .aayda-statistics__card-period {
    color: var(--aayda-colors-base-white);
  }

  .aayda-statistics__card:hover .aayda-statistics__card-arrow img {
    filter: brightness(0) invert(1);
    transform: rotate(45deg);
  }

  @media (prefers-reduced-motion: reduce) {
    .aayda-statistics__card-bar,
    .aayda-statistics__card-content,
    .aayda-statistics__card-period,
    .aayda-statistics__card-arrow img,
    .aayda-statistics__card-value,
    .aayda-statistics__card-description {
      transition: none;
    }
  }
}

@media (max-width: 1415px) {
  .aayda-statistics {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 402px;
    height: 505px;
    margin: 17px auto 0;
    padding: 24px 24px 32px;
    overflow: visible;
    background: var(--aayda-colors-surface-disabled);
    font-family: var(--aayda-typography-font-primary);
    color: var(--aayda-colors-text);
  }

  .aayda-statistics__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--aayda-numbers-spacing-32);
    width: 100%;
    max-width: 354px;
    height: 449px;
    margin: 0 auto;
    padding: 0;
  }

  .aayda-statistics__title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--aayda-numbers-spacing-16);
    width: 100%;
    max-width: 354px;
    height: 92px;
    overflow: visible;
  }

  .aayda-statistics__badge {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--aayda-numbers-spacing-4);
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    height: 28px;
    padding: 3px 15px 3px 11px;
    margin: 0;
    font-size: var(--aayda-typography-size-12);
    font-weight: var(--aayda-typography-weight-medium);
    line-height: var(--aayda-typography-line-height-12);
    letter-spacing: var(--aayda-typography-letter-spacing-12);
    color: var(--aayda-colors-text);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid var(--aayda-colors-base-white);
    border-radius: 28px;
  }

  .aayda-statistics__badge-icon {
    display: block;
    flex-shrink: 0;
    width: 15px;
    height: 14px;
  }

  .aayda-statistics__badge-icon img {
    display: block;
    width: 11px;
    height: 11px;
    margin: 2px 0 0 2px;
    max-width: none;
  }

  .aayda-statistics__title {
    box-sizing: border-box;
    width: 100%;
    max-width: 354px;
    height: 48px;
    margin: 0;
    overflow: visible;
    font-size: var(--aayda-typography-size-24);
    font-weight: var(--aayda-typography-weight-semi-bold);
    line-height: var(--aayda-typography-line-height-heading-24);
    letter-spacing: var(--aayda-typography-letter-spacing-24);
    color: var(--aayda-colors-text);
  }

  .aayda-statistics__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 171px));
    column-gap: 11px;
    row-gap: 11px;
    width: 100%;
    max-width: 353px;
    height: 325px;
    margin: 0;
  }

  .aayda-statistics__card {
    position: relative;
    width: 100%;
    max-width: 171px;
    height: 157px;
    margin: 0;
    overflow: visible;
  }

  .aayda-statistics__card:nth-child(2),
  .aayda-statistics__card:nth-child(3),
  .aayda-statistics__card:nth-child(4) {
    grid-column: auto;
  }

  .aayda-statistics__card::before {
    content: "";
    position: absolute;
    top: 137.871px;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 20.128px;
    background: var(--aayda-colors-green-600);
    border-radius: 12px;
  }

  .aayda-statistics__card-bar {
    position: absolute;
    top: 134px;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 28px;
    background: var(--aayda-colors-green-600);
    border-radius: 28px;
    transition: none;
  }

  .aayda-statistics__card-content {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--aayda-numbers-spacing-12);
    width: 100%;
    max-width: 171px;
    height: 159px;
    padding: 52px 20px 16px;
    overflow: visible;
    background: var(--aayda-colors-surface-subtle);
    border-radius: 12px;
    box-shadow: inset 0 0 0 2px var(--aayda-colors-base-white);
    transition: none;
  }

  .aayda-statistics__card-label {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 45px;
  }

  .aayda-statistics__card-period {
    position: absolute;
    top: 16.45px;
    left: 12px;
    width: 70px;
    height: 18px;
    margin: 0;
    font-size: var(--aayda-typography-size-10);
    font-weight: var(--aayda-typography-weight-semi-bold);
    line-height: var(--aayda-typography-line-height-10);
    letter-spacing: var(--aayda-typography-letter-spacing-10);
    color: var(--aayda-colors-navy-700);
    white-space: nowrap;
    transition: none;
  }

  .aayda-statistics__card-arrow {
    position: absolute;
    top: 11px;
    right: 11px;
    left: auto;
    display: block;
    width: 34px;
    height: 34px;
    overflow: hidden;
  }

  .aayda-statistics__card-arrow img {
    display: block;
    width: 34px;
    height: 34px;
    max-width: none;
    transform: none;
    transform-origin: unset;
    filter: none;
    transition: none;
  }

  .aayda-statistics__card-value--desktop {
    display: none;
  }

  .aayda-statistics__card-value--mobile {
    display: block;
  }

  .aayda-statistics__card-value {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 147px;
    height: 27px;
    margin: 0;
    font-size: var(--aayda-typography-size-18);
    line-height: var(--aayda-typography-line-height-stat-18);
    letter-spacing: var(--aayda-typography-letter-spacing-stat-18);
    color: var(--aayda-colors-text);
    transition: none;
  }

  .aayda-statistics__card-value-number {
    font-weight: var(--aayda-typography-weight-bold);
  }

  .aayda-statistics__card-value-space {
    font-weight: var(--aayda-typography-weight-semi-bold);
  }

  .aayda-statistics__card-value-unit {
    font-weight: var(--aayda-typography-weight-regular);
  }

  .aayda-statistics__card-divider {
    flex-shrink: 0;
    width: 147px;
    height: 1px;
    background-image: repeating-linear-gradient(
      to right,
      #8c8c8c 0 2.12px,
      transparent 2.12px 4.24px
    );
    -webkit-mask-image: radial-gradient(
      50% 800% at 50% 50%,
      #8c8c8c 0%,
      rgb(80 80 80 / 0.05) 100%
    );
    mask-image: radial-gradient(
      50% 800% at 50% 50%,
      #8c8c8c 0%,
      rgb(80 80 80 / 0.05) 100%
    );
  }

  .aayda-statistics__card-description {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 147px;
    height: 54px;
    margin: 0;
    font-size: var(--aayda-typography-size-10);
    font-weight: var(--aayda-typography-weight-regular);
    line-height: var(--aayda-typography-line-height-10);
    letter-spacing: var(--aayda-typography-letter-spacing-10);
    color: var(--aayda-colors-text);
    transition: none;
  }

  .aayda-statistics__card:hover .aayda-statistics__card-content {
    background: var(--aayda-colors-surface-subtle);
    box-shadow: inset 0 0 0 2px var(--aayda-colors-base-white);
  }

  .aayda-statistics__card:hover .aayda-statistics__card-bar {
    height: 28px;
  }

  .aayda-statistics__card:hover .aayda-statistics__card-value {
    color: var(--aayda-colors-text);
  }

  .aayda-statistics__card:hover .aayda-statistics__card-description {
    color: var(--aayda-colors-text);
  }

  .aayda-statistics__card:hover .aayda-statistics__card-period {
    color: var(--aayda-colors-navy-700);
  }

  .aayda-statistics__card:hover .aayda-statistics__card-arrow img {
    filter: none;
    transform: none;
  }
}

/* Tablet: Mobile 5257:19387 chrome, fluid 2×2 cards. No Desktop 300px / hover. */
@media (min-width: 768px) and (max-width: 1415px) {
  .aayda-statistics {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    margin: 17px 0 0;
    padding: 24px 16px 32px;
    overflow: visible;
  }

  .aayda-statistics__inner,
  .aayda-statistics__title-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
  }

  .aayda-statistics__title {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .aayda-statistics__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    column-gap: 11px;
    row-gap: 11px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
  }

  .aayda-statistics__card,
  .aayda-statistics__card-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .aayda-statistics__card-value,
  .aayda-statistics__card-divider,
  .aayda-statistics__card-description {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

/* Section badge text (HomeSectionLabel, edited in the admin panel). The pill hugs its wording
   (width: max-content, as the about page's labels do); the 1px border now sits inside the
   padding, as Figma's stroke does, so the pill keeps the design's 28px and offsets. A label too long
   for the title block is cut with an ellipsis rather than wrapped, so the heading never moves. */
.aayda-statistics__badge-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
