/* Cookie Consent Stylesheet */

/* Banner Wrapper */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 420px;
    width: calc(100% - 48px);
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    display: none;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
}

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

/* Banner Content */
.cookie-banner h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner h3 i {
    color: #d4771a;
}

.cookie-banner p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #b0b0cb;
    margin-bottom: 20px;
}

.cookie-banner p a {
    color: #d4771a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-banner p a:hover {
    color: #ff9d47;
    text-decoration: underline;
}

/* Banner Action Buttons */
.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #d4771a, #ff6b35);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 119, 26, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 119, 26, 0.4);
}

.cookie-btn-reject {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.cookie-btn-settings {
    background: transparent;
    color: #b0b0cb;
    border: none;
    padding-left: 0;
    padding-right: 10px;
    font-weight: 500;
}

.cookie-btn-settings:hover {
    color: #ffffff;
}

/* Cookie Preferences Modal Overlay */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 18, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Preferences Modal Card */
.cookie-modal {
    background: #151526;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    max-width: 550px;
    width: calc(100% - 32px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.cookie-modal-overlay.active .cookie-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.cookie-modal-header h2 i {
    color: #d4771a;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: #b0b0cb;
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

/* Modal Content */
.cookie-modal-body {
    padding: 24px;
}

.cookie-modal-body p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #b0b0cb;
    margin-bottom: 24px;
}

/* Preference Items List */
.cookie-options-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.cookie-option-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-option-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.cookie-option-details {
    flex: 1;
}

.cookie-option-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
}

.cookie-badge-required {
    font-size: 0.72rem;
    background: rgba(212, 119, 26, 0.15);
    color: #d4771a;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.cookie-option-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #a0a0b8;
}

/* Custom Switch Toggle Widget */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.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: rgba(255, 255, 255, 0.15);
    transition: .3s;
    border-radius: 24px;
}

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

.cookie-switch input:checked + .cookie-slider {
    background-color: #d4771a;
}

.cookie-switch input:focus + .cookie-slider {
    box-shadow: 0 0 1px #d4771a;
}

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

.cookie-switch input:disabled + .cookie-slider {
    background-color: rgba(212, 119, 26, 0.4);
    cursor: not-allowed;
}

.cookie-switch input:disabled + .cookie-slider:before {
    background-color: rgba(255, 255, 255, 0.6);
}

/* Modal Footer Actions */
.cookie-modal-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Scrollbar for modal content */
.cookie-modal::-webkit-scrollbar {
    width: 6px;
}

.cookie-modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.cookie-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.cookie-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Rules */
@media (max-width: 576px) {
    .cookie-banner {
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        padding: 18px;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column-reverse;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-btn-settings {
        padding: 8px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}
