/* ============================================================
   Diplom va sertifikatni tekshirish — views/proacademy/check_attestation.php
   ============================================================
 *
 * `AttestationAsset` orqali, `InnerPageAsset` dan KEYIN ulanadi. Ranglar
 * `.ip` tokenlari; klasslar `att-` prefiksli.
 */

.att {
    padding-bottom: 64px;
}

.att-wrap {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Hero ─────────────────────────────────────────────────────────── */

.att-hero {
    position: relative;
    overflow: hidden;
    /* Sayt header'i `position: fixed` va hero ustida turadi */
    padding: 118px 0 120px;
    background:
        linear-gradient(180deg, rgba(8, 30, 84, .85) 0, rgba(8, 30, 84, 0) 130px),
        radial-gradient(70% 90% at 80% 40%, #1d5fd6 0%, rgba(29, 95, 214, 0) 70%),
        linear-gradient(100deg, #0a2a6b 0%, #0c3a96 55%, #1554d1 100%);
    color: #fff;
}

/* Pastki oq "to'lqin" — qidiruv kartasi shu chegaraga kirib turadi */
.att-hero::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -60px;
    left: -10%;
    height: 120px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: var(--ip-bg, #f4f7fc);
}

.att-hero__building {
    position: absolute;
    top: 0;
    left: 0;
    width: 52%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: .28;
    transform: scaleX(-1);
    /* `scaleX(-1)` niqobni ham ag'daradi — shuning uchun 90deg: o'ng chet xiralashadi */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 65%);
    mask-image: linear-gradient(90deg, transparent 0, #000 65%);
    pointer-events: none;
}

.att-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
    gap: 24px;
    align-items: center;
    min-height: 300px;
}

.att-hero__text {
    position: relative;
    z-index: 1;
    padding-left: 22px;
    border-left: 6px solid #3b82f6;
}

.att-hero__title {
    margin: 0;
    color: #fff;
    max-width: 640px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
}

.att-hero__sub {
    max-width: 560px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
    line-height: 1.55;
}

.att-hero__art {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(2, 19, 61, .35));
}

/* ── Qidiruv kartasi ──────────────────────────────────────────────── */

.att-search {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 28px;
    align-items: center;
    max-width: 860px;
    margin: -150px 0 0;
    padding: 30px 34px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(11, 42, 102, .18);
}

.att-search__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: var(--ip-primary-50, #eaf1ff);
    color: var(--ip-primary, #0b44b8);
}

.att-search__form {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.att-search__label {
    display: block;
    margin: 0 0 12px;
    color: var(--ip-ink, #0f1b3d);
    font-size: 18px;
    font-weight: 700;
}

.att-search__row {
    display: flex;
    gap: 14px;
}

.att-search__field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.att-search__glass {
    position: absolute;
    top: 50%;
    left: 16px;
    display: flex;
    color: var(--ip-muted, #6b7385);
    transform: translateY(-50%);
    pointer-events: none;
}

.att-search__input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 48px;
    border: 1px solid #cfd9ea;
    border-radius: 10px;
    background: #fff;
    color: var(--ip-ink, #0f1b3d);
    font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}

.att-search__input::placeholder {
    color: var(--ip-muted, #6b7385);
}

.att-search__input:focus {
    border-color: var(--ip-primary-600, #1554d1);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(21, 84, 209, .15);
}

.att-search__btn {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 10px;
    align-items: center;
    height: 52px;
    padding: 0 30px;
    border: 0;
    border-radius: 10px;
    background: var(--ip-primary-600, #1554d1);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s;
}

.att-search__btn:hover,
.att-search__btn:focus-visible {
    background: var(--ip-primary, #0b44b8);
}

.att-search__btn:focus-visible {
    outline: 3px solid rgba(21, 84, 209, .35);
    outline-offset: 2px;
}

/* ── Natija ───────────────────────────────────────────────────────── */

.att-result {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 36px;
    align-items: center;
    justify-content: space-between;
    max-width: 860px;
    margin-top: 24px;
    padding: 26px 32px;
    border: 1px solid var(--ip-line, #e6ebf3);
    border-left: 6px solid #22c55e;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--ip-shadow);
}

.att-result--none {
    border-left-color: #f59e0b;
}

.att-result__main {
    flex: 1 1 380px;
    min-width: 0;
}

.att-result__head {
    display: flex;
    gap: 16px;
    align-items: center;
}

.att-result__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
}

.att-result--none .att-result__icon {
    background: #fef3c7;
    color: #d97706;
}

.att-result__title {
    margin: 0;
    color: var(--ip-ink, #0f1b3d);
    font-size: 21px;
    font-weight: 700;
}

.att-result__hint {
    margin: 4px 0 0;
    color: var(--ip-text, #4b5565);
    font-size: 14.5px;
    line-height: 1.5;
}

.att-result__list {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 10px 20px;
    margin: 20px 0 0;
    font-size: 15px;
}

.att-result__list dt {
    color: var(--ip-muted, #6b7385);
    font-weight: 500;
}

.att-result__list dd {
    margin: 0;
    color: var(--ip-ink, #0f1b3d);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.att-result__number {
    font-family: ui-monospace, Consolas, monospace;
    letter-spacing: .04em;
}

.att-result__qr {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.att-result__qrbox {
    width: 148px;
    min-height: 148px;
    padding: 8px;
    border: 1px solid var(--ip-line, #e6ebf3);
    border-radius: 12px;
    background: #fff;
}

.att-result__qrbox svg,
.att-result__qrbox img,
.att-result__qrbox canvas {
    display: block;
    width: 100%;
    height: auto;
}

.att-result__qrhint {
    color: var(--ip-muted, #6b7385);
    font-size: 12.5px;
}

/* ── Qadamlar ─────────────────────────────────────────────────────── */

.att-steps {
    margin-top: 48px;
}

.att-steps__title {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
    margin: 0 0 28px;
    color: var(--ip-ink, #0f1b3d);
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}

.att-steps__title::before,
.att-steps__title::after {
    content: "";
    flex: 0 1 120px;
    height: 1px;
    background: #c9d6ee;
}

.att-steps__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.att-step {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

/* Qadamlar orasidagi strelka */
.att-step + .att-step::before {
    content: "›";
    position: absolute;
    top: 18px;
    left: -24px;
    color: #a8b8d6;
    font-size: 34px;
    line-height: 1;
}

.att-step__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(145deg, #eaf1ff, #d6e4ff);
    color: var(--ip-primary-600, #1554d1);
    box-shadow: 0 8px 22px rgba(21, 84, 209, .12);
}

.att-step__title {
    margin: 6px 0 6px;
    color: var(--ip-ink, #0f1b3d);
    font-size: 17px;
    font-weight: 700;
}

.att-step__text {
    margin: 0;
    color: var(--ip-text, #4b5565);
    font-size: 14.5px;
    line-height: 1.5;
}

/* ── Moslashuvchanlik ─────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .att-hero {
        padding-bottom: 150px;
    }

    .att-hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .att-hero__art {
        max-width: 420px;
        margin: 0 auto;
    }

    .att-hero__title {
        font-size: 34px;
    }

    .att-search {
        margin-top: -120px;
    }

    .att-steps__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .att-step + .att-step::before {
        display: none;
    }
}

@media (max-width: 599.98px) {
    .att-wrap {
        padding: 0 16px;
    }

    .att-hero__title {
        font-size: 27px;
    }

    .att-hero__sub {
        font-size: 15px;
    }

    .att-hero__art {
        display: none;
    }

    .att-hero {
        padding-bottom: 110px;
    }

    .att-search {
        flex-direction: column;
        align-items: stretch;
        margin-top: -80px;
        padding: 22px 18px;
    }

    .att-search__icon {
        display: none;
    }

    .att-search__row {
        flex-direction: column;
    }

    .att-search__btn {
        justify-content: center;
    }

    .att-result {
        padding: 20px 18px;
    }

    .att-result__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .att-result__list dd {
        margin-bottom: 10px;
    }

    .att-steps__title::before,
    .att-steps__title::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .att-search__input,
    .att-search__btn {
        transition: none;
    }
}
