﻿/* ==========================================================
   COOKIE BANNER
   Samsun Göçük Timi Mert Otomotiv
========================================================== */


.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    width: min(1100px,calc(100% - 40px));
    z-index: 9999;
    background: linear-gradient( 145deg, rgba(8,15,29,.95), rgba(8,15,29,.82) );
    border: 1px solid rgba(46,230,214,.20);
    border-radius: 24px;
    padding: 25px 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 70px rgba(0,0,0,.45);
    animation: cookieShow .5s ease;
}




.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}




.cookie-text {
    flex: 1;
}



    .cookie-text h3 {
        margin: 0 0 10px;
        color: white;
        font-size: 20px;
        font-weight: 900;
    }



    .cookie-text p {
        margin: 0;
        color: #a8bad6;
        font-size: 14px;
        line-height: 1.7;
    }





.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}





.cookie-btn {
    height: 45px;
    padding: 0 22px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: .35s ease;
}





.cookie-primary {
    background: linear-gradient( 135deg, #2ee6d6, #08bfff );
    color: #06131c;
}





    .cookie-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(46,230,214,.35);
    }





.cookie-secondary {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: white;
}





    .cookie-secondary:hover {
        border-color: #2ee6d6;
        color: #2ee6d6;
    }





.cookie-outline {
    background: transparent;
    border: 1px solid rgba(46,230,214,.35);
    color: #2ee6d6;
}





    .cookie-outline:hover {
        background: rgba(46,230,214,.12);
    }





@keyframes cookieShow {


    from {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }


    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}







/* ==========================================================
   COOKIE SETTINGS MODAL
========================================================== */


/* ==========================================================
   COOKIE SETTINGS MODAL OVERLAY
========================================================== */


.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.82);
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
}





.cookie-settings-box {
    width: min(520px,100%);
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient( 145deg, rgba(8,15,29,.98), rgba(8,15,29,.94) );
    border: 1px solid rgba(46,230,214,.20);
    border-radius: 28px;
    padding: 35px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,.65);
}





    .cookie-settings-box::-webkit-scrollbar {
        width: 6px;
    }


    .cookie-settings-box::-webkit-scrollbar-thumb {
        background: #2ee6d6;
        border-radius: 20px;
    }








    .cookie-settings-box h3 {
        color: white;
        font-size: 25px;
        font-weight: 900;
        margin-bottom: 15px;
    }





    .cookie-settings-box p {
        color: #a8bad6;
        line-height: 1.7;
        font-size: 14px;
    }





.cookie-close {
    position: absolute;
    right: 20px;
    top: 15px;
    background: none;
    border: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}





.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}





    .cookie-option strong {
        display: block;
        color: white;
        margin-bottom: 5px;
    }





    .cookie-option small {
        color: #8ea1bb;
        font-size: 13px;
    }





    .cookie-option input {
        width: 20px;
        height: 20px;
        accent-color: #2ee6d6;
    }







.cookie-save-btn {
    width: 100%;
    height: 48px;
    margin-top: 25px;
    border: 0;
    border-radius: 50px;
    background: linear-gradient( 135deg, #2ee6d6, #08bfff );
    color: #06131c;
    font-weight: 900;
    cursor: pointer;
}







/* ==========================================================
   MOBILE
========================================================== */


@media(max-width:768px) {



    .cookie-banner {
        bottom: 15px;
        width: calc(100% - 30px);
        padding: 20px;
        border-radius: 20px;
        transition: opacity .4s ease, transform .4s ease;
    }





    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }





    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }





    .cookie-btn {
        width: 100%;
    }





    .cookie-settings-box {
        padding: 25px;
        max-height: 90vh;
    }
}
