/* YSFF — iletişim, modal ve sol alt yukarı çıkma geliştirmeleri */

.contact-section,
.contact-grid,
.contact-intro,
.contact-detail-grid,
.contact-detail-card {
    max-width: 100%;
}


.contact-detail-text {
    margin-top: 14px;
    color: var(--text-muted, #9ca9be);
    line-height: 1.75;
}

.contact-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 26px 0 20px;
}

.contact-detail-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 15px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, .025);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.contact-detail-card:hover {
    transform: translateY(-2px);
    border-color: rgba(73, 195, 255, .34);
    background: rgba(73, 195, 255, .055);
}

.contact-detail-card-wide {
    grid-column: auto;
}

.contact-detail-card > span:last-child {
    min-width: 0;
}

.contact-detail-card small,
.contact-detail-card strong {
    display: block;
}

.contact-detail-card small {
    margin-bottom: 4px;
    color: var(--text-muted, #8d9bb2);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.contact-detail-card strong {
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.5;
}

.contact-detail-icon,
.contact-detail-number {
    display: grid;
    flex: 0 0 39px;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(73, 195, 255, .25);
    border-radius: 12px;
    color: #70d9ff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(73, 195, 255, .08);
}

.contact-detail-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.footer-inner-centered {
    justify-content: center;
    text-align: center;
}

.footer-inner-centered p {
    width: 100%;
    margin: 0;
}

.footer-inner-centered p span {
    display: inline;
}

.footer-inner-centered a {
    font-weight: 700;
}

.floating-back-to-top {
    position: fixed;
    z-index: 1500;
    right: clamp(14px, 2.4vw, 28px);
    bottom: max(18px, env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(111, 216, 255, .34);
    border-radius: 15px;
    color: #effaff;
    cursor: pointer;
    background: linear-gradient(145deg, rgba(18, 40, 68, .96), rgba(8, 20, 36, .96));
    box-shadow: 0 16px 38px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px) scale(.92);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease, border-color .22s ease;
    backdrop-filter: blur(14px);
}

.floating-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.floating-back-to-top:hover {
    border-color: rgba(111, 216, 255, .72);
    transform: translateY(-3px) scale(1);
}

.floating-back-to-top:focus-visible {
    outline: 3px solid rgba(92, 205, 255, .36);
    outline-offset: 3px;
}

.floating-back-to-top svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.request-success-modal {
    position: fixed;
    z-index: 2500;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.request-success-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.request-success-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
    background: rgba(1, 6, 14, .78);
    backdrop-filter: blur(8px);
}

.request-success-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 690px);
    max-height: min(88vh, 820px);
    overflow-y: auto;
    padding: clamp(25px, 4vw, 38px);
    border: 1px solid rgba(113, 211, 255, .24);
    border-radius: 24px;
    color: #eaf4ff;
    background: radial-gradient(circle at 100% 0, rgba(42, 168, 231, .15), transparent 34%), #0b1628;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .54);
    transform: translateY(18px) scale(.97);
    transition: transform .24s ease;
}

.request-success-modal.is-open .request-success-modal-panel {
    transform: translateY(0) scale(1);
}

.request-success-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 12px;
    color: #eaf4ff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    background: rgba(255, 255, 255, .035);
}

.request-success-modal-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #052115;
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(145deg, #6cf2bc, #65d7ff);
    box-shadow: 0 14px 34px rgba(66, 221, 183, .2);
}

.request-success-modal-badge {
    display: block;
    margin-bottom: 8px;
    color: #68d6ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.request-success-modal-panel h2 {
    margin: 0 45px 13px 0;
    font-size: clamp(25px, 5vw, 36px);
    line-height: 1.18;
}

.request-success-modal-panel > p {
    color: #aebed4;
    line-height: 1.72;
}

.request-success-modal-message {
    color: #dff8ff !important;
    font-weight: 700;
}

.request-success-modal-privacy {
    margin-top: 20px;
    padding: 19px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
}

.request-success-modal-privacy strong {
    display: block;
    margin-bottom: 11px;
}

.request-success-modal-privacy p {
    margin: 8px 0 0;
    color: #aebed4;
    font-size: 13px;
    line-height: 1.72;
}

.request-success-modal-privacy a {
    color: #70d9ff;
}

.request-success-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.request-success-modal-actions .button {
    min-width: 150px;
    justify-content: center;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .contact-intro {
        min-width: 0;
        overflow: hidden;
    }

    .contact-detail-text {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.7;
    }

    .contact-detail-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        margin: 21px 0 18px;
    }

    .contact-detail-card,
    .contact-detail-card-wide {
        grid-column: auto;
        width: 100%;
        min-width: 0;
        padding: 14px;
        gap: 11px;
        border-radius: 14px;
    }

    .contact-detail-card:hover {
        transform: none;
    }

    .contact-detail-card > span:last-child {
        flex: 1 1 auto;
        width: calc(100% - 48px);
        min-width: 0;
    }

    .contact-detail-card small {
        margin-bottom: 5px;
        font-size: 10px;
        letter-spacing: .055em;
    }

    .contact-detail-card strong {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .contact-detail-icon,
    .contact-detail-number {
        flex-basis: 37px;
        width: 37px;
        height: 37px;
        border-radius: 11px;
    }

    .contact-detail-icon svg {
        width: 18px;
        height: 18px;
    }

    .footer-inner-centered {
        padding-left: 14px;
        padding-right: 14px;
    }

    .footer-inner-centered p {
        font-size: 12px;
        line-height: 1.65;
    }

    .footer-inner-centered p span {
        display: block;
        margin-top: 4px;
    }

    .floating-back-to-top {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        width: 43px;
        height: 43px;
        border-radius: 13px;
    }

    .floating-back-to-top svg {
        width: 21px;
        height: 21px;
    }

    .request-success-modal {
        align-items: end;
        padding:
            10px
            10px
            max(10px, env(safe-area-inset-bottom));
    }

    .request-success-modal-panel {
        width: 100%;
        max-height: calc(100dvh - 20px);
        padding: 24px 18px 20px;
        border-radius: 20px 20px 16px 16px;
    }

    .request-success-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 22px;
    }

    .request-success-modal-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
        border-radius: 15px;
        font-size: 23px;
    }

    .request-success-modal-panel h2 {
        margin-right: 38px;
        font-size: clamp(23px, 7vw, 30px);
    }

    .request-success-modal-panel > p {
        font-size: 14px;
        line-height: 1.65;
    }

    .request-success-modal-privacy {
        margin-top: 16px;
        padding: 15px;
        border-radius: 14px;
    }

    .request-success-modal-privacy strong {
        font-size: 14px;
        line-height: 1.5;
    }

    .request-success-modal-privacy p {
        font-size: 12px;
        line-height: 1.65;
    }

    .request-success-modal-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 18px;
    }

    .request-success-modal-actions .button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .contact-detail-grid {
        margin-top: 18px;
    }

    .contact-detail-card,
    .contact-detail-card-wide {
        padding: 13px 12px;
    }

    .contact-detail-card strong {
        font-size: 12.5px;
    }

    .contact-detail-icon,
    .contact-detail-number {
        flex-basis: 35px;
        width: 35px;
        height: 35px;
        font-size: 11px;
    }

    .floating-back-to-top {
        right: 10px;
        width: 41px;
        height: 41px;
    }

    .request-success-modal-panel {
        padding: 22px 15px 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-back-to-top,
    .request-success-modal,
    .request-success-modal-panel {
        transition: none;
    }
}


/* Gerçek SVG dil bayrakları */
.language-flag {
    display: inline-flex;
    flex: 0 0 auto;
    width: 24px;
    height: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 3px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .24);
    vertical-align: middle;
}

.language-flag svg {
    display: block;
    width: 100%;
    height: 100%;
}

.language-button .language-flag {
    width: 23px;
    height: 15px;
}

.language-menu a .language-flag {
    width: 26px;
    height: 17px;
}

.language-button {
    gap: 7px;
}

.language-menu a {
    align-items: center;
}

@media (max-width: 768px) {
    .language-button .language-flag {
        width: 22px;
        height: 15px;
    }

    .language-menu a .language-flag {
        width: 24px;
        height: 16px;
    }
}


/* Yerel ve gerçek bayrak görselleri */
.language-flag {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 3px;
    background: rgba(255, 255, 255, .08);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, .28),
        inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.language-flag img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.language-button .language-flag {
    width: 27px;
    height: 18px;
}

.language-menu a .language-flag {
    width: 30px;
    height: 20px;
}

@media (max-width: 768px) {
    .language-button .language-flag {
        width: 25px;
        height: 17px;
    }

    .language-menu a .language-flag {
        width: 28px;
        height: 19px;
    }
}
