﻿/* =========================================================
   COOKIE BAR
========================================================= */

.cookie-bar {
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(110deg, #f4f6f8 0%, #e1e5e9 100%);
    border-top: 1px solid rgba(0, 85, 184, 0.18);
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    font-size: 14px;
    color: #333;
}

.cookieContentContainer {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 18px 0 16px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.cookie-bar h4 {
    color: #08559f ;
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}

.cookie-bar p {
    margin: 0 auto 14px;
    max-width: 1050px;
    line-height: 1.55;
    color: #3f3f3f;
}

.cookie-bar p a {
    color: #08559f  !important;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-bar .buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    width: 100%;
    padding: 0;
}


/* =========================================================
   BUTTONS
========================================================= */

.cookie-bar button,
.cookie-modal button {
    margin: 0;
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.cookie-bar button:hover,
.cookie-modal button:hover {
    transform: translateY(-1px);
}

.accept-btn,
.reject-btn {
    background: #08559f ;
    color: #fff;
    border-color: #08559f ;
}

.accept-btn:hover,
.reject-btn:hover {
    background: #004895;
    border-color: #004895;
    color: #fff;
}

.settings-btn {
    background: #fff;
    color: #08559f ;
    border-color: #08559f  !important;
}

.settings-btn:hover {
    background: #08559f ;
    color: #fff;
}


/* =========================================================
   COOKIE MODAL
========================================================= */

.cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.62);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.cookie-modal-content-container {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100vh - 60px);
    margin: 0 auto;
    padding: 30px 0 24px 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
    font-size: 15px;
    box-sizing: border-box;
    overflow: visible;
}

.cookie-modal-content-container h2 {
    margin: 0 35px 18px 0;
    color: #08559f ;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.cookie-modal-content-container > p {
    margin: 0 25px 18px 0;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-modal-content-container p a {
    color: #08559f  !important;
    font-weight: 600;
    text-decoration: underline;
}


/* =========================================================
   MODAL CONTENT SCROLL
========================================================= */

.cookie-modal-content {
    max-height: 58vh;
    padding: 0 25px 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #b8b8b8 transparent;
}

.cookie-modal-content::-webkit-scrollbar {
    width: 6px;
}

.cookie-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.cookie-modal-content::-webkit-scrollbar-thumb {
    background: #b9b9b9;
    border-radius: 10px;
}

.cookie-modal-content::-webkit-scrollbar-thumb:hover {
    background: #8e8e8e;
}


/* =========================================================
   COOKIE SECTIONS
========================================================= */

.cookie-section {
    border-bottom: 1px solid #e3e6e9;
    padding: 17px 0;
}

.cookie-section:first-child {
    padding-top: 8px;
}

.cookie-section:last-of-type {
    border-bottom: 0;
}

.cookie-section h4 {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #252525;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.cookie-section h4 > div {
    margin-left: auto !important;
}

.openAccordion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    height: 22px;
    margin: 0 9px 0 0;
    border: 1px solid #08559f ;
    border-radius: 50%;
    color: #08559f ;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
}


/* =========================================================
   COOKIE DETAILS
========================================================= */

.cookie-details {
    display: none;
    margin-top: 14px;
    padding-left: 31px;
    color: #555;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

.cookie-details p {
    margin: 0 0 10px;
}

.tanimlamaBilgisiLink {
    display: inline-block;
    margin: 9px 0 12px;
    color: #08559f ;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.tanimlamaBilgisiContent {
    display: none;
    margin-top: 5px;
    padding: 12px 14px;
    background: #f7f9fb;
    border-left: 3px solid #08559f ;
    border-radius: 3px;
}

.tanimlamaBilgisiContent .item {
    display: block;
    margin: 0 0 16px;
    color: #555;
    font-size: 12px;
    line-height: 1.55;
}

.tanimlamaBilgisiContent .item:last-child {
    margin-bottom: 0;
}


/* =========================================================
   COOKIE SWITCH
========================================================= */

.switchCookie-label {
    display: flex;
    align-items: center;
    margin: 0;
}

.switchCookie {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    margin: 0;
}

.switchCookie input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sliderCookie {
    position: absolute;
    inset: 0;
    background-color: #c8ccd0;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color .25s ease;
}

.sliderCookie:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .25s ease;
}

.switchCookie input:checked + .sliderCookie {
    background-color: #08559f ;
}

.switchCookie input:checked + .sliderCookie:before {
    transform: translateX(22px);
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.close-modal-cookie {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    background: #08559f ;
    border: 3px solid #fff;
    border-radius: 50%;

    color: #fff;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);

    transition:
        background-color .2s ease,
        transform .2s ease;
}

.close-modal-cookie:hover {
    background: #004895;
    color: #fff;
    transform: rotate(90deg);
}


/* =========================================================
   MODAL BUTTON AREA
========================================================= */

.cookie-modal .buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 20px 25px 0 0;
}

.cookie-modal .save-preferences {
    min-width: 155px;
}


/* =========================================================
   ACCESSIBILITY / FOCUS
========================================================= */

.cookie-bar button:focus-visible,
.cookie-modal button:focus-visible,
.close-modal-cookie:focus-visible,
.switchCookie input:focus-visible + .sliderCookie,
.tanimlamaBilgisiLink:focus-visible {
    outline: 3px solid rgba(0, 85, 184, .35);
    outline-offset: 3px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .cookieContentContainer {
        width: 92%;
        padding: 15px 0 13px;
    }

    .cookie-bar h4 {
        font-size: 17px;
        margin-bottom: 7px;
    }

    .cookie-bar p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .cookie-bar .buttons {
        gap: 7px;
    }

    .cookie-bar button {
        min-height: 38px;
        padding: 9px 13px;
        font-size: 11px;
    }

    .cookie-modal {
        padding: 20px 12px;
        align-items: center;
    }

    .cookie-modal-content-container {
        width: 100%;
        max-height: calc(100vh - 40px);
        padding: 24px 0 20px 20px;
        border-radius: 8px;
    }

    .cookie-modal-content-container h2 {
        margin-right: 30px;
        margin-bottom: 14px;
        font-size: 19px;
    }

    .cookie-modal-content-container > p {
        margin-right: 18px;
        font-size: 13px;
        line-height: 1.55;
    }

    .cookie-modal-content {
        max-height: 45vh;
        padding-right: 18px;
    }

    .cookie-section {
        padding: 14px 0;
    }

    .cookie-section h4 {
        font-size: 13px;
    }

    .cookie-details {
        padding-left: 30px;
        font-size: 12px;
    }

    .switchCookie {
        width: 42px;
        height: 22px;
    }

    .sliderCookie:before {
        width: 16px;
        height: 16px;
    }

    .switchCookie input:checked + .sliderCookie:before {
        transform: translateX(20px);
    }

    .close-modal-cookie {
        top: -13px;
        right: -5px;
        width: 34px;
        height: 34px;
        font-size: 23px;
    }

    .cookie-modal .buttons {
        padding: 16px 18px 0 0;
    }

    .cookie-modal .save-preferences {
        width: 100%;
        min-width: 0;
    }
}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 420px) {

    .cookie-bar .buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .cookie-bar .settings-btn {
        grid-column: 1 / -1;
    }

    .cookie-bar button {
        width: 100%;
    }

    .cookie-modal-content-container {
        padding-left: 16px;
    }

    .cookie-modal-content {
        padding-right: 14px;
    }

    .cookie-section h4 {
        font-size: 12px;
    }

    .openAccordion {
        width: 20px;
        min-width: 20px;
        height: 20px;
        margin-right: 7px;
        font-size: 13px;
    }
}

