/* Homepage info cards (moon calendar / FAQ / blog + order-tracking).
   Phase B (T2a): these rules were previously emitted as inline <style> blocks
   inside inc/homepage/{moon-calendar-card,order-tracking-card}.php, placed
   AFTER the markup — so the cards laid out unstyled and then reflowed
   (desktop CLS 0.164). They are now a head stylesheet loaded before the
   homepage content, so the first paint is already styled. Homepage-only. */

/* ===== Info cards (moon calendar / FAQ / blog) ===== */
.hp-cards {
    display: flex;
    gap: 16px;
    margin: 16px 0;
}

.hp-cards__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    flex: 1;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    text-decoration: none;
    color: #444;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hp-cards__item:hover,
.hp-cards__item:focus {
    transform: translateY(-2px);
    text-decoration: none;
    color: #444;
}

/* Orange — Moon Calendar */
.hp-cards__item--orange {
    background: linear-gradient(135deg, rgba(255, 165, 50, 0.15) 0%, rgba(255, 120, 20, 0.18) 100%);
    border: 1px solid rgba(255, 165, 50, 0.3);
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.hp-cards__item--orange:hover {
    background: linear-gradient(135deg, rgba(255, 165, 50, 0.25) 0%, rgba(255, 120, 20, 0.28) 100%);
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 8px 32px rgba(255, 140, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
}
.hp-cards__item--orange .hp-cards__title { color: #c45d00; }
.hp-cards__item--orange .hp-cards__arrow { color: #c45d00; }

/* Blue — FAQ */
.hp-cards__item--blue {
    background: linear-gradient(135deg, rgba(60, 130, 230, 0.12) 0%, rgba(40, 100, 200, 0.16) 100%);
    border: 1px solid rgba(60, 130, 230, 0.25);
    box-shadow: 0 4px 16px rgba(60, 130, 230, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.hp-cards__item--blue:hover {
    background: linear-gradient(135deg, rgba(60, 130, 230, 0.22) 0%, rgba(40, 100, 200, 0.26) 100%);
    border-color: rgba(60, 130, 230, 0.45);
    box-shadow: 0 8px 32px rgba(60, 130, 230, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
}
.hp-cards__item--blue .hp-cards__title { color: #2a6cb8; }
.hp-cards__item--blue .hp-cards__arrow { color: #2a6cb8; }

/* Green — Blog */
.hp-cards__item--green {
    background: linear-gradient(135deg, rgba(49, 169, 0, 0.1) 0%, rgba(40, 140, 0, 0.14) 100%);
    border: 1px solid rgba(49, 169, 0, 0.25);
    box-shadow: 0 4px 16px rgba(49, 169, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.hp-cards__item--green:hover {
    background: linear-gradient(135deg, rgba(49, 169, 0, 0.2) 0%, rgba(40, 140, 0, 0.24) 100%);
    border-color: rgba(49, 169, 0, 0.45);
    box-shadow: 0 8px 32px rgba(49, 169, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
}
.hp-cards__item--green .hp-cards__title { color: #278400; }
.hp-cards__item--green .hp-cards__arrow { color: #278400; }

.hp-cards__icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}

.hp-cards__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.hp-cards__title {
    font-size: 24px;
    font-weight: 700;
}

.hp-cards__subtitle {
    font-size: 16px;
    color: #777;
}

.hp-cards__arrow {
    font-size: 22px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hp-cards__item:hover .hp-cards__arrow {
    transform: translateX(4px);
}

/* ===== Order-tracking card ===== */
.hp-tracking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 16px 0 0;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(100, 60, 180, 0.1) 0%, rgba(130, 80, 220, 0.14) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(120, 70, 200, 0.25);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(120, 70, 200, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: #444;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hp-tracking:hover,
.hp-tracking:focus {
    background: linear-gradient(135deg, rgba(100, 60, 180, 0.18) 0%, rgba(130, 80, 220, 0.22) 100%);
    border-color: rgba(120, 70, 200, 0.45);
    box-shadow: 0 8px 32px rgba(120, 70, 200, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    text-decoration: none;
    color: #444;
}

.hp-tracking__icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.hp-tracking__title {
    font-size: 20px;
    font-weight: 700;
    color: #5b3a9e;
}

.hp-tracking__arrow {
    font-size: 22px;
    color: #5b3a9e;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hp-tracking:hover .hp-tracking__arrow {
    transform: translateX(4px);
}

/* ===== Order-tracking modal ===== */
.hp-tracking-modal .modal-dialog {
    max-width: 560px;
    margin: 80px auto;
}

.hp-tracking-modal .modal-content {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(120, 70, 200, 0.08);
    overflow: hidden;
    padding: 0;
}

.hp-tracking-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    z-index: 1;
    line-height: 1;
    transition: color 0.2s;
}

.hp-tracking-modal__close:hover {
    color: #555;
}

.hp-tracking-modal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 28px 16px;
    background: linear-gradient(135deg, rgba(100, 60, 180, 0.06) 0%, rgba(130, 80, 220, 0.1) 100%);
    border-bottom: 1px solid rgba(120, 70, 200, 0.1);
}

.hp-tracking-modal__header-icon {
    font-size: 32px;
    line-height: 1;
}

.hp-tracking-modal__header-title {
    font-size: 22px;
    font-weight: 700;
    color: #5b3a9e;
}

.hp-tracking-modal__body {
    padding: 20px 28px 28px;
}

.hp-tracking-modal__desc {
    font-size: 15px;
    color: #666;
    margin: 0 0 20px;
}

.hp-tracking-modal__bots {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.hp-tracking-modal__bot {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    flex: 1;
    border-radius: 14px;
    text-decoration: none;
    color: #444;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hp-tracking-modal__bot:hover,
.hp-tracking-modal__bot:focus {
    transform: translateY(-1px);
    text-decoration: none;
    color: #444;
}

.hp-tracking-modal__bot--tg {
    background: linear-gradient(135deg, rgba(42, 171, 238, 0.1) 0%, rgba(30, 140, 200, 0.14) 100%);
    border: 1px solid rgba(42, 171, 238, 0.25);
}

.hp-tracking-modal__bot--tg:hover {
    background: linear-gradient(135deg, rgba(42, 171, 238, 0.18) 0%, rgba(30, 140, 200, 0.22) 100%);
    border-color: rgba(42, 171, 238, 0.45);
    box-shadow: 0 6px 20px rgba(42, 171, 238, 0.12);
}

.hp-tracking-modal__bot--max {
    background: linear-gradient(135deg, rgba(22, 138, 205, 0.1) 0%, rgba(15, 110, 170, 0.14) 100%);
    border: 1px solid rgba(22, 138, 205, 0.25);
}

.hp-tracking-modal__bot--max:hover {
    background: linear-gradient(135deg, rgba(22, 138, 205, 0.18) 0%, rgba(15, 110, 170, 0.22) 100%);
    border-color: rgba(22, 138, 205, 0.45);
    box-shadow: 0 6px 20px rgba(22, 138, 205, 0.12);
}

.hp-tracking-modal__bot-icon {
    flex-shrink: 0;
    line-height: 1;
}

.hp-tracking-modal__bot-icon img {
    border-radius: 50%;
    display: block;
}

.hp-tracking-modal__bot-name {
    font-size: 18px;
    flex: 1;
    font-weight: 700;
    color: #333;
}

.hp-tracking-modal__bot-arrow {
    font-size: 20px;
    color: #999;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hp-tracking-modal__bot:hover .hp-tracking-modal__bot-arrow {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .hp-cards {
        flex-direction: column;
        gap: 10px;
        margin: 12px 0;
    }

    .hp-cards__item {
        padding: 16px 20px;
        gap: 12px;
    }

    .hp-cards__icon {
        font-size: 30px;
    }

    .hp-cards__title {
        font-size: 19px;
    }

    .hp-cards__subtitle {
        font-size: 14px;
    }

    .hp-tracking {
        margin: 12px 0 0;
        padding: 12px 20px;
        gap: 12px;
    }

    .hp-tracking__icon {
        font-size: 24px;
    }

    .hp-tracking__title {
        font-size: 17px;
    }

    .hp-tracking-modal .modal-dialog {
        margin: 20px 10px;
    }

    .hp-tracking-modal__header {
        padding: 20px 20px 14px;
    }

    .hp-tracking-modal__header-title {
        font-size: 19px;
    }

    .hp-tracking-modal__body {
        padding: 16px 20px 24px;
    }

    .hp-tracking-modal__bots {
        flex-direction: column;
    }

    .hp-tracking-modal__bot {
        padding: 14px 16px;
        gap: 12px;
    }

    .hp-tracking-modal__bot-name {
        font-size: 16px;
    }
}
