/* ============================================
   Cookie Consent Banner Styles
   For Panthouse Island
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: 380px;
    background: linear-gradient(135deg, rgba(28, 28, 46, 0.98), rgba(28, 28, 46, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #faf9f7;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 999999;
    transform: translateX(calc(100% + 2rem));
    opacity: 0;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), opacity 400ms ease;
}

.cookie-consent--visible {
    transform: translateX(0);
    opacity: 1;
}

.cookie-consent__content {
    width: 100%;
}

.cookie-consent__text {
    margin-bottom: 1rem;
}

.cookie-consent__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

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

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

.cookie-consent__btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    flex: 0 1 auto;
    white-space: nowrap;
}

.cookie-consent__btn--accept {
    background-color: #c3a681;
    color: #1c1c2e;
}

.cookie-consent__btn--accept:hover {
    background-color: #d4bb9a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(195, 166, 129, 0.4);
}

.cookie-consent__btn--reject {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.cookie-consent__btn--preferences {
    background-color: transparent;
    color: #c3a681;
    border: 1px solid #c3a681;
}

.cookie-consent__btn--preferences:hover {
    background-color: rgba(195, 166, 129, 0.1);
}

.cookie-consent__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    text-align: center;
}

.cookie-consent__link {
    font-size: 0.8125rem;
    color: #c3a681;
    text-decoration: underline;
    transition: color 200ms ease;
}

.cookie-consent__link:hover {
    color: #d4bb9a;
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

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

.cookie-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cookie-modal__content {
    position: relative;
    background-color: #faf9f7;
    border-radius: 0.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-modal--visible .cookie-modal__content {
    transform: scale(1);
}

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

.cookie-modal__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: #1c1c2e;
    margin: 0;
}

.cookie-modal__close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #585858;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 200ms ease;
}

.cookie-modal__close:hover {
    color: #1c1c2e;
}

.cookie-modal__body {
    padding: 2rem;
}

.cookie-option {
    margin-bottom: 2rem;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.cookie-option__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #1c1c2e;
    margin: 0;
}

.cookie-option__desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #585858;
    margin: 0 0 0 3.5rem;
}

/* Toggle Switch */
.cookie-option__toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

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

.cookie-option__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d6d6d6;
    transition: 300ms;
    border-radius: 26px;
}

.cookie-option__slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 300ms;
    border-radius: 50%;
}

.cookie-option__toggle input:checked + .cookie-option__slider {
    background-color: #c3a681;
}

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

.cookie-option__toggle input:disabled + .cookie-option__slider {
    background-color: #a8a8a8;
    cursor: not-allowed;
    opacity: 0.6;
}

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

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

    .cookie-consent__title {
        font-size: 1rem;
    }

    .cookie-consent__message {
        font-size: 0.75rem;
    }

    .cookie-consent__btn {
        font-size: 0.6875rem;
        padding: 0.5rem 0.875rem;
    }

    .cookie-modal__header {
        padding: 1.25rem 1.5rem;
    }

    .cookie-modal__title {
        font-size: 1.5rem;
    }

    .cookie-modal__body {
        padding: 1.5rem;
    }

    .cookie-option__desc {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .cookie-modal__footer {
        padding: 1.25rem 1.5rem;
    }

    .cookie-consent__btn--accept {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        bottom: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
    }
}
