/* =========================================================
   TGF HOME POPUP V1
   Yalnızca ana sayfa popup bileşeni
   Mevcut frontend stillerinden bağımsızdır.
========================================================= */

.tgf-home-popup[hidden] {
    display: none !important;
}

.tgf-home-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    isolation: isolate;
}

.tgf-home-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 15, 35, 0.82);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.tgf-home-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 820px);
    max-height: min(90vh, 900px);
    max-height: min(90dvh, 900px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    scrollbar-width: thin;
}

.tgf-home-popup__header {
    padding: 28px 64px 24px 30px;
    background: linear-gradient(120deg,
            #061a38 0%,
            #0b3265 100%);
    color: #ffffff;
}

.tgf-home-popup__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #b9cee8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.tgf-home-popup__header h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(21px, 3vw, 28px);
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.tgf-home-popup__close {
    position: absolute;
    z-index: 5;
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tgf-home-popup__close:hover {
    background: #bd1e2d;
}

.tgf-home-popup__close:focus-visible,
.tgf-home-popup__link:focus-visible,
.tgf-home-popup__dismiss:focus-visible {
    outline: 3px solid #e7a32c;
    outline-offset: 3px;
}

.tgf-home-popup__visual {
    padding: 20px 24px 0;
    text-align: center;
}

.tgf-home-popup__visual img {
    display: block;
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 7px;
    background: #f5f7fb;
}

.tgf-home-popup__description {
    padding: 22px 30px;
    color: #46556a;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.tgf-home-popup__links {
    padding: 0 30px 26px;
}

.tgf-home-popup__links h3 {
    margin: 0 0 14px;
    color: #092750;
    font-size: 15px;
    font-weight: 800;
}

.tgf-home-popup__link-list {
    display: grid;
    gap: 10px;
}

.tgf-home-popup__link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 12px 15px;
    border: 1px solid #e1e7ef;
    border-left: 3px solid #bd1e2d;
    border-radius: 7px;
    background: #f8fafd;
    color: #102f57;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.tgf-home-popup__link:hover {
    background: #edf3fa;
    border-color: #b5c9df;
    border-left-color: #bd1e2d;
    transform: translateY(-1px);
}

.tgf-home-popup__link-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: #e8eef6;
    color: #bd1e2d;
    font-size: 18px;
}

.tgf-home-popup__link-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tgf-home-popup__link-arrow {
    flex-shrink: 0;
    color: #bd1e2d;
    font-size: 18px;
}

.tgf-home-popup__footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 30px;
    border-top: 1px solid #e6ebf2;
    background: #f8fafd;
}

.tgf-home-popup__dismiss {
    min-width: 110px;
    padding: 11px 20px;
    border: 0;
    border-radius: 7px;
    background: #092750;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tgf-home-popup__dismiss:hover {
    background: #bd1e2d;
}

body.tgf-popup-open {
    overflow: hidden;
}

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

@media (max-width: 640px) {
    .tgf-home-popup {
        padding: 8px;
    }

    .tgf-home-popup__dialog {
        width: 100%;
        max-height: 92vh;
        max-height: 92dvh;
    }

    .tgf-home-popup__header {
        padding: 24px 58px 22px 20px;
    }

    .tgf-home-popup__eyebrow {
        font-size: 10px;
        letter-spacing: 0.7px;
    }

    .tgf-home-popup__header h2 {
        font-size: 21px;
    }

    .tgf-home-popup__close {
        top: 14px;
        right: 14px;
        width: 34px;
        height: 34px;
    }

    .tgf-home-popup__visual {
        padding: 14px 14px 0;
    }

    .tgf-home-popup__visual img {
        max-height: 240px;
    }

    .tgf-home-popup__description {
        padding: 18px 20px;
        font-size: 13px;
    }

    .tgf-home-popup__links {
        padding: 0 20px 20px;
    }

    .tgf-home-popup__link {
        padding: 11px 12px;
    }

    .tgf-home-popup__footer {
        padding: 14px 20px;
    }
}

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

    .tgf-home-popup *,
    .tgf-home-popup *::before,
    .tgf-home-popup *::after {
        transition: none !important;
        animation: none !important;
    }
}