/* KVKK/GDPR Cookie Consent Banner - Modern Design */

/* Cookie Banner Container - Modern Dark Design */
.cookie-consent-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 480px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(32, 32, 32, 0.98) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 32px;
    z-index: 99999;
    border-radius: 20px;
    transform: translateY(150%) scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-banner.active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cookie-consent-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header Section */
.cookie-consent-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cookie-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2B5B8C 0%, #1a4b7c 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(43, 91, 140, 0.4);
}

.cookie-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.cookie-consent-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

/* Close button */
.cookie-banner-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cookie-banner-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* Content Section */
.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-consent-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cookie-consent-text a {
    color: #FF8C42;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 140, 66, 0.3);
    transition: all 0.2s;
}

.cookie-consent-text a:hover {
    color: #ffaa66;
    border-bottom-color: #ffaa66;
}

/* Buttons Section - Modern Layout */
.cookie-consent-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    width: 100%;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #2B5B8C 0%, #1e4d7f 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(43, 91, 140, 0.4);
    order: 3;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #3a6fa8 0%, #2B5B8C 100%);
    box-shadow: 0 6px 25px rgba(43, 91, 140, 0.5);
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    order: 2;
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.cookie-btn-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    order: 1;
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.cookie-settings-modal.active {
    display: flex;
    opacity: 1;
}

.cookie-settings-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-settings-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 22px;
    color: #1a1a1a;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cookie-close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.cookie-settings-body {
    padding: 24px;
}

/* Cookie Category */
.cookie-category {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.cookie-category:hover {
    border-color: #2B5B8C;
    box-shadow: 0 4px 12px rgba(43, 91, 140, 0.1);
}

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

.cookie-category-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-required {
    font-size: 12px;
    background: #e8e8e8;
    color: #666;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.cookie-category-description {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

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

.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.3s;
    border-radius: 28px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #2B5B8C 0%, #1a4b7c 100%);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Settings Footer */
.cookie-settings-footer {
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        padding: 24px;
    }

    .cookie-consent-title {
        font-size: 19px;
    }

    .cookie-consent-text {
        font-size: 14px;
    }

    .cookie-settings-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

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

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

@media (min-width: 769px) and (max-width: 1024px) {
    .cookie-consent-banner {
        max-width: 420px;
    }
}

@media (min-width: 1025px) {
    .cookie-consent-banner {
        max-width: 480px;
    }
}

/* Animation for banner appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent-banner.active .cookie-consent-container {
    animation: fadeInUp 0.5s ease-out;
}
