/* Cookie Consent Widget Styles */

/* Bottom Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 87, 255, 0.3);
    padding: 20px 0;
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 992px) {
    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-text {
    flex: 1;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-text strong {
    color: #ffffff;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.cookie-text a {
    color: #0057ff;
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-text a:hover {
    color: #3075ff;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.cookie-btn-primary {
    background-color: #0057ff;
    color: #fff;
}

.cookie-btn-primary:hover {
    background-color: #3075ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 87, 255, 0.4);
}

.cookie-btn-secondary {
    background-color: transparent;
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    color: #fff;
}

/* Settings Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal {
    background: #1a1d24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

.cookie-modal-overlay.show .cookie-modal {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h4 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: #a0a4ab;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.cookie-modal-close:hover {
    color: #fff;
}

.cookie-modal-body {
    padding: 20px 25px;
    overflow-y: auto;
    flex: 1;
}

.cookie-preference-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-preference-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

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

.cookie-preference-title {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.cookie-preference-desc {
    color: #a0a4ab;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.cookie-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

/* Custom CSS Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 24px;
}

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

input:checked + .cookie-slider {
    background-color: #0057ff;
}

input:disabled + .cookie-slider {
    background-color: #1a3a75; /* Disabled but active visual */
    cursor: not-allowed;
    opacity: 0.8;
}

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