/**
 * GDPR Cookie Consent Banner
 * Google Consent Mode v2 & Meta Pixel compatible
 */

.cookie-consent {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.98) 0%, rgba(15, 30, 50, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(45, 122, 246, 0.2);
    padding: 1.5rem;
    z-index: 999999 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.visible {
    transform: translateY(0);
}

.cookie-consent__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent__content {
    flex: 1;
    min-width: 300px;
}

.cookie-consent__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-family: 'Outfit', sans-serif;
}

.cookie-consent__text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.cookie-consent__text a {
    color: #2D7AF6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-consent__text a:hover {
    color: #00D4FF;
}

.cookie-consent__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-consent__btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.cookie-consent__btn--accept {
    background: linear-gradient(135deg, #2D7AF6 0%, #00D4FF 100%);
    color: #fff;
}

.cookie-consent__btn--accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 122, 246, 0.4);
}

.cookie-consent__btn--reject {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.cookie-consent__btn--settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-consent__btn--settings:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-settings-modal.visible {
    display: flex;
}

.cookie-settings-modal__content {
    background: linear-gradient(135deg, #0A1628 0%, #0F1E32 100%);
    border-radius: 16px;
    border: 1px solid rgba(45, 122, 246, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cookie-settings-modal__header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.cookie-settings-modal__close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-settings-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cookie-settings-modal__body {
    padding: 2rem;
}

.cookie-settings-modal__description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-category__title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.cookie-category__toggle {
    position: relative;
    width: 48px;
    height: 24px;
}

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

.cookie-category__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

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

.cookie-category__toggle input:checked + .cookie-category__slider {
    background: linear-gradient(135deg, #2D7AF6 0%, #00D4FF 100%);
}

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

.cookie-category__toggle input:disabled + .cookie-category__slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category__description {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

.cookie-settings-modal__footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-settings-modal__btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-settings-modal__btn--save {
    background: linear-gradient(135deg, #2D7AF6 0%, #00D4FF 100%);
    color: #fff;
}

.cookie-settings-modal__btn--save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 122, 246, 0.4);
}

.cookie-settings-modal__btn--cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cookie-settings-modal__btn--cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem;
    }
    
    .cookie-consent__container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cookie-consent__actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-consent__btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-settings-modal__header,
    .cookie-settings-modal__body,
    .cookie-settings-modal__footer {
        padding: 1.5rem;
    }
    
    .cookie-settings-modal__footer {
        flex-direction: column;
    }
    
    .cookie-settings-modal__btn {
        width: 100%;
    }
}
