/**
 * Ciné Réunion - Styles Module de Consentement Cookies
 */

/* Bannière cookies */
.cine-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-top: 3px solid #ff6b6b;
    padding: 25px 20px;
    z-index: 999999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cine-cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 25px;
}

.cine-cookie-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.cine-cookie-text {
    flex: 1;
}

.cine-cookie-text h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.cine-cookie-text p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cine-cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cine-cookie-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cine-cookie-btn-accept {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.cine-cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

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

.cine-cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cine-cookie-btn-settings {
    background: transparent;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
}

.cine-cookie-btn-settings:hover {
    background: rgba(255, 107, 107, 0.1);
}

.cine-cookie-btn-secondary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    padding: 14px 32px;
    font-size: 16px;
}

.cine-cookie-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* Modal de paramètres */
.cine-cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cine-cookie-settings.show {
    opacity: 1;
}

.cine-cookie-settings-content {
    background: #1a1a1a;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid #333;
}

.cine-cookie-settings-header {
    padding: 25px 30px;
    border-bottom: 2px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cine-cookie-settings-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    margin: 0;
}

.cine-cookie-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.cine-cookie-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cine-cookie-settings-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.cine-cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid #333;
}

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

.cine-cookie-category-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cine-cookie-category h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.cine-cookie-category p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Switch toggle */
.cine-cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

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

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

input:checked + .cine-cookie-slider {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

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

input:disabled + .cine-cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cine-cookie-settings-footer {
    padding: 25px 30px;
    border-top: 2px solid #333;
    text-align: center;
}

/* Bouton de gestion dans le footer */
.cine-cookie-manage-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.cine-cookie-manage-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cine-cookie-footer-link {
    text-align: center;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .cine-cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cine-cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .cine-cookie-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cine-cookie-banner {
        padding: 20px 15px;
    }

    .cine-cookie-text h3 {
        font-size: 18px;
    }

    .cine-cookie-text p {
        font-size: 13px;
    }

    .cine-cookie-settings-content {
        max-height: 90vh;
    }

    .cine-cookie-settings-header,
    .cine-cookie-settings-body,
    .cine-cookie-settings-footer {
        padding: 20px;
    }

    .cine-cookie-category-header {
        flex-direction: column;
        gap: 15px;
    }
}

/* Styles pour les espaces publicitaires */
.cine-ad-container {
    margin: 30px 0;
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cine-ad-container[data-format="WEB_FOOTER"] {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #333;
}

.cine-ad-container[data-format="WEB_HABILLAGE"] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
}

.cine-ad-container[data-format="WEB_HABILLAGE"] > * {
    pointer-events: all;
}

.cine-ad-container[data-format^="WEB_MBAN"],
.cine-ad-container[data-format^="WEB_MPAVE"] {
    margin: 20px auto;
}

@media (max-width: 768px) {
    .cine-ad-container[data-format="WEB_HABILLAGE"] {
        position: relative;
    }
}
