/**
 * cookie-banner.css
 * Banner de consentiment de cookies RGPD.
 * Apareix a la part inferior de la pantalla fins que l'usuari decideix.
 */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a2e;
    color: #f0f0f0;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cookie-banner__text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.55;
    font-family: 'Montserrat', sans-serif;
}

.cookie-banner__text a {
    color: #d4917a;
    /* terracota marca */
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
    color: #e8b4a0;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    align-items: center;
}

/* Botó acceptar */
.cookie-banner__accept {
    background: #d4917a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.cookie-banner__accept:hover {
    background: #c07a63;
    transform: translateY(-1px);
}

.cookie-banner__accept:active {
    transform: translateY(0);
}

/* Botó rebutjar */
.cookie-banner__reject {
    background: transparent;
    color: #aaa;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 0.6rem 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.cookie-banner__reject:hover {
    color: #f0f0f0;
    border-color: #aaa;
}

/* Responsiu mòbil */
@media (max-width: 640px) {
    .cookie-banner__inner {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__accept,
    .cookie-banner__reject {
        flex: 1;
        text-align: center;
    }
}