/**
 * 🍪 Cookie Banner Styles - Style Cyber/Gaming
 * Conforme RGPD pour Loot Factory
 */

/* Bannière principale */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #00d4ff;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#cookie-banner.cookie-banner-show {
    opacity: 1;
    transform: translateY(0);
}

#cookie-banner.cookie-banner-hide {
    opacity: 0;
    transform: translateY(100px);
}

.cookie-banner-content {
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.cookie-banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2300d4ff" stroke-width="0.5" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.cookie-banner-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    animation: pulse 2s infinite;
}

.cookie-banner-text h4 {
    color: #00d4ff;
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: bold;
}

.cookie-banner-text p {
    color: #ccc;
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-banner-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-btn {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border: 1px solid #00d4ff;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cookie-btn:hover::before {
    left: 100%;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #28a745;
}

.cookie-btn-refuse {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-color: #dc3545;
}

.cookie-btn-customize {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border-color: #6c757d;
}

/* Modal de gestion */
#cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#cookie-modal.cookie-modal-show {
    opacity: 1;
    visibility: visible;
}

#cookie-modal.cookie-modal-hide {
    opacity: 0;
    visibility: hidden;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #00d4ff;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    position: relative;
}

.cookie-modal-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px;
    border-radius: 18px 18px 0 0;
    text-align: center;
    position: relative;
}

.cookie-modal-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    animation: bounce 2s infinite;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.cookie-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-modal-body {
    padding: 25px;
    color: white;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #00d4ff;
    border-radius: 10px;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.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: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #00d4ff;
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

input:disabled + .cookie-slider {
    background-color: #28a745;
    cursor: not-allowed;
}

.cookie-category-info h4 {
    color: #00d4ff;
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: bold;
}

.cookie-category-info p {
    color: #ccc;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-modal-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 0 0 18px 18px;
    text-align: center;
    border-top: 1px solid #00d4ff;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-color: #00d4ff;
    padding: 12px 24px;
    font-size: 14px;
}

.cookie-btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border-color: #6c757d;
    padding: 12px 24px;
    font-size: 14px;
    margin-right: 10px;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive */
@media (max-width: 768px) {
    #cookie-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: 90vh;
    }
}



