
/* =========================================
   TAMPILKAN - FOLLOW INVITATION POPUP
   ORANGE THEME
========================================= */

:root {
    --tf-orange: #e87538;
    --tf-orange-hover: #d96327;
    --tf-orange-light: #fff1e8;
    --tf-orange-border: #f7d8c7;
    --tf-text-dark: #242424;
    --tf-text-muted: #777777;
}

/* =========================================
   MODAL CONTAINER
========================================= */

.tf-invite-modal[hidden] {
    display: none !important;
}

.tf-invite-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 16px;
}

/* =========================================
   BACKDROP
========================================= */

.tf-invite-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.55);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* =========================================
   POPUP CARD
========================================= */

.tf-invite-card {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 420px;
    max-height: calc(100dvh - 32px);

    overflow-y: auto;
    scrollbar-width: none;

    padding: 27px 28px;

    background: #ffffff;
    color: var(--tf-text-dark);

    border: 1px solid #f5e5db;
    border-radius: 22px;

    box-shadow: 0 25px 80px rgba(75, 35, 15, 0.18);

    font-family: "DM Sans", sans-serif;
    text-align: center;

    animation: tfInviteIn 0.25s ease;
}

.tf-invite-card::-webkit-scrollbar {
    display: none;
}

@keyframes tfInviteIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================
   CLOSE BUTTON
========================================= */

.tf-invite-close {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 33px;
    height: 33px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: var(--tf-orange-light);
    color: var(--tf-orange);

    font-family: inherit;
    font-size: 23px;
    line-height: 1;

    cursor: pointer;
    transition: 0.2s ease;
}

.tf-invite-close:hover {
    background: #ffe2d1;
}

/* =========================================
   BELL ICON
========================================= */

.tf-invite-bell {
    width: 55px;
    height: 55px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 2px auto 17px;

    border: 1px solid var(--tf-orange-border);
    border-radius: 17px;

    background: var(--tf-orange-light);
    color: var(--tf-orange);
}

.tf-invite-bell svg {
    width: 27px;
    height: 27px;
}

/* =========================================
   EYEBROW LABEL
========================================= */

.tf-invite-label {
    display: inline-block;

    color: var(--tf-orange);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

/* =========================================
   HEADLINE
========================================= */

.tf-invite-card h2 {
    margin: 12px 0 11px;

    color: var(--tf-text-dark);

    font-size: 29px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.tf-invite-card h2 em {
    color: var(--tf-orange);
    font-style: normal;
}

/* =========================================
   DESCRIPTION
========================================= */

.tf-invite-card p {
    margin: 0;

    color: var(--tf-text-muted);

    font-size: 12px;
    font-weight: 400;
    line-height: 1.75;
}

/* =========================================
   CATEGORY TAGS
========================================= */

.tf-invite-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;
    margin: 19px 0 21px;
}

.tf-invite-tags span {
    padding: 8px 12px;

    border: 1px solid var(--tf-orange-border);
    border-radius: 8px;

    background: var(--tf-orange-light);
    color: #bb5625;

    font-size: 11px;
    font-weight: 700;
}

/* =========================================
   ACTION BUTTONS
========================================= */

.tf-invite-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tf-invite-primary {
    width: 100%;
    min-height: 46px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 12px;

    border: none;
    border-radius: 11px;

    background: var(--tf-orange);
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    box-shadow: 0 5px 15px rgba(232, 117, 56, 0.18);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.tf-invite-primary:hover {
    background: var(--tf-orange-hover);

    transform: translateY(-1px);

    box-shadow: 0 7px 20px rgba(232, 117, 56, 0.25);
}

.tf-invite-primary span {
    font-size: 17px;
}

.tf-invite-later {
    width: 100%;
    min-height: 42px;

    border: 1px solid var(--tf-orange-border);
    border-radius: 11px;

    background: #ffffff;
    color: var(--tf-orange);

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.2s ease;
}

.tf-invite-later:hover {
    background: var(--tf-orange-light);
}

/* =========================================
   BOTTOM DESCRIPTION
========================================= */

.tf-invite-card small {
    display: block;

    margin-top: 14px;

    color: #999999;

    font-size: 10px;
    line-height: 1.6;
}

/* =========================================
   ACCESSIBILITY
========================================= */

.tf-invite-close:focus-visible,
.tf-invite-primary:focus-visible,
.tf-invite-later:focus-visible {
    outline: 2px solid var(--tf-orange);
    outline-offset: 3px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 540px) {

    .tf-invite-modal {
        padding: 12px;
    }

    .tf-invite-card {
        max-width: 100%;
        max-height: calc(100dvh - 24px);

        padding: 24px 20px;
        border-radius: 18px;
    }

    .tf-invite-bell {
        width: 49px;
        height: 49px;
        margin-bottom: 14px;
    }

    .tf-invite-card h2 {
        font-size: 26px;
    }

    .tf-invite-tags {
        margin: 16px 0 19px;
    }
}

/* =========================================
   SHORT SCREEN
========================================= */

@media (max-height: 650px) {

    .tf-invite-card {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .tf-invite-bell {
        width: 43px;
        height: 43px;
        margin-bottom: 10px;
    }

    .tf-invite-card h2 {
        font-size: 25px;
        margin: 8px 0;
    }

    .tf-invite-tags {
        margin: 12px 0 15px;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .tf-invite-card {
        animation: none;
    }

    .tf-invite-primary {
        transition: none;
    }
}
