/* KVKK Compliant Cookie Consent Styles */

/* Cookie Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid #00a3b3;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 25px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

#cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-banner-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

.cookie-banner-text a {
    color: #00a3b3;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
}

.cookie-btn-accept {
    background-color: #00a3b3;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background-color: #008a99;
}

.cookie-btn-reject {
    background-color: #6c757d;
    color: #ffffff;
}

.cookie-btn-reject:hover {
    background-color: #5a6268;
}

.cookie-btn-configure {
    background-color: #ffffff;
    color: #00a3b3;
    border: 2px solid #00a3b3;
}

.cookie-btn-configure:hover {
    background-color: #f0f9fa;
}

/* Cookie Settings Panel */
#cookie-settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#cookie-settings-panel.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    background: #ffffff;
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.cookie-settings-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.cookie-settings-close:hover {
    color: #333;
}

.cookie-category {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cookie-category-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cookie-category-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #00a3b3;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(30px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #00a3b3;
    cursor: not-allowed;
}

.cookie-settings-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.cookie-settings-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-settings-btn-save {
    background-color: #00a3b3;
    color: #ffffff;
}

.cookie-settings-btn-save:hover {
    background-color: #008a99;
}

/* Cookie Settings Icon */
#cookie-settings-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #00a3b3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    transition: background-color 0.3s ease;
}

#cookie-settings-icon:hover {
    background-color: #008a99;
}

#cookie-settings-icon svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

/* Third-party service warning */
.third-party-service-blocked {
    position: relative;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 4px;
    padding: 40px 20px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.third-party-service-blocked p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.third-party-service-blocked .cookie-consent-link {
    color: #00a3b3;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 0 10px;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        min-width: auto;
    }

    .cookie-settings-content {
        padding: 20px;
        margin: 10px;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    .cookie-settings-btn {
        width: 100%;
    }

    #cookie-settings-icon {
        width: 45px;
        height: 45px;
        bottom: 15px;
        left: 15px;
    }
}
