/* Cookie Banner Styles - Beautiful Minimalist Design */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(221, 176, 111, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Raleway', sans-serif;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e50;
    font-weight: 400;
}

.cookie-banner-text a {
    color: #ddb06f;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.cookie-banner-text a:hover {
    color: #916422;
    border-bottom-color: #916422;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 12px 20px;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 110px;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cookie-btn:hover::before {
    left: 100%;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #ddb06f 0%, #f39c12 100%);
    color: #fff;
    border-color: #ddb06f;
    box-shadow: 0 4px 12px rgba(221, 176, 111, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 176, 111, 0.4);
    background: linear-gradient(135deg, #916422 0%, #e67e22 100%);
}

.cookie-btn-settings {
    background: transparent;
    color: #7f8c8d;
    border-color: #bdc3c7;
    box-shadow: 0 2px 8px rgba(127, 140, 141, 0.1);
}

.cookie-btn-settings:hover {
    background: #7f8c8d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(127, 140, 141, 0.3);
}

.cookie-btn-reject {
    background: transparent;
    color: #7f8c8d;
    border-color: #bdc3c7;
    box-shadow: 0 2px 8px rgba(127, 140, 141, 0.1);
}

.cookie-btn-reject:hover {
    background: #7f8c8d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(127, 140, 141, 0.3);
}

.cookie-btn-save {
    background: linear-gradient(135deg, #ddb06f 0%, #f39c12 100%);
    color: #fff;
    border-color: #ddb06f;
    width: 100%;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(221, 176, 111, 0.3);
}

.cookie-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 176, 111, 0.4);
    background: linear-gradient(135deg, #916422 0%, #e67e22 100%);
}

/* Cookie Settings Modal - Beautiful Minimalist Design */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.cookie-settings-modal.show {
    display: flex;
    opacity: 1;
}

.cookie-settings-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(221, 176, 111, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-settings-modal.show .cookie-settings-content {
    transform: scale(1) translateY(0);
}

.cookie-settings-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid rgba(221, 176, 111, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.cookie-settings-close:hover {
    background: rgba(221, 176, 111, 0.1);
    color: #ddb06f;
    transform: rotate(90deg);
}

.cookie-settings-body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(221, 176, 111, 0.1);
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: rgba(248, 249, 250, 1);
    border-color: rgba(221, 176, 111, 0.2);
    transform: translateY(-1px);
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookie-category-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
}

.cookie-category-info p {
    margin: 0;
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
}

/* Toggle Switch - Beautiful Minimalist Design */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

input:checked + .cookie-slider {
    background: linear-gradient(135deg, #ddb06f 0%, #f39c12 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(221, 176, 111, 0.2);
}

input:focus + .cookie-slider {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(221, 176, 111, 0.3);
}

input:checked + .cookie-slider:before {
    transform: translateX(24px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Force visual update for dynamically changed checkboxes */
#cookie-analytics:checked + .cookie-slider,
#cookie-functional:checked + .cookie-slider {
    background: linear-gradient(135deg, #ddb06f 0%, #f39c12 100%) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(221, 176, 111, 0.2) !important;
}

#cookie-analytics:not(:checked) + .cookie-slider,
#cookie-functional:not(:checked) + .cookie-slider {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Additional classes for JavaScript control */
.cookie-slider.checked {
    background: linear-gradient(135deg, #ddb06f 0%, #f39c12 100%) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(221, 176, 111, 0.2) !important;
}

.cookie-slider.unchecked {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

input:disabled + .cookie-slider {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

input:disabled + .cookie-slider:before {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-settings-footer {
    padding: 20px 24px 24px 24px;
    border-top: 1px solid rgba(221, 176, 111, 0.1);
}

/* Responsive Design - Beautiful Minimalist */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px 16px;
    }
    
    .cookie-banner-text {
        min-width: auto;
    }
    
    .cookie-banner-text p {
        font-size: 14px;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .cookie-settings-content {
        margin: 10px;
        max-height: 90vh;
        max-width: calc(100% - 20px);
        border-radius: 12px;
    }
    
    .cookie-settings-header {
        padding: 20px 20px 12px 20px;
    }
    
    .cookie-settings-header h3 {
        font-size: 18px;
    }
    
    .cookie-settings-body {
        padding: 20px;
    }
    
    .cookie-settings-footer {
        padding: 16px 20px 20px 20px;
    }
    
    .cookie-category {
        padding: 16px;
    }
    
    .cookie-category-header {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 16px 12px;
    }
    
    .cookie-banner-text p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .cookie-btn {
        padding: 10px 12px;
        font-size: 12px;
        min-width: 85px;
    }
    
    .cookie-settings-content {
        margin: 5px;
        max-width: calc(100% - 10px);
        border-radius: 8px;
    }
    
    .cookie-settings-header {
        padding: 16px 16px 8px 16px;
    }
    
    .cookie-settings-header h3 {
        font-size: 16px;
    }
    
    .cookie-settings-body {
        padding: 16px;
    }
    
    .cookie-settings-footer {
        padding: 12px 16px 16px 16px;
    }
    
    .cookie-category {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .cookie-category-info h4 {
        font-size: 14px;
    }
    
    .cookie-category-info p {
        font-size: 12px;
    }
    
    .cookie-switch {
        width: 44px;
        height: 24px;
    }
    
    .cookie-slider:before {
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
    }
    
    input:checked + .cookie-slider:before {
        transform: translateX(20px);
    }
}
