/* Cookie Banner Styles - Apex Legends Theme */

/* Overlay */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(12px);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cookie-overlay.active {
    display: block;
    animation: fadeIn 0.5s forwards;
}

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.95), rgba(10, 14, 26, 0.95));
    border: 2px solid rgba(218, 41, 46, 0.3);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(218, 41, 46, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-banner.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Hexagon Pattern Background */
.cookie-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(30deg, transparent 49%, rgba(218, 41, 46, 0.05) 49%, rgba(218, 41, 46, 0.05) 51%, transparent 51%),
        linear-gradient(-30deg, transparent 49%, rgba(218, 41, 46, 0.05) 49%, rgba(218, 41, 46, 0.05) 51%, transparent 51%);
    background-size: 20px 20px;
    border-radius: 16px;
    pointer-events: none;
}

/* Cookie Icon and Title Container */
.cookie-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.cookie-icon {
    font-size: 48px;
    color: #FFB700;
    filter: drop-shadow(0 0 10px rgba(255, 183, 0, 0.5));
    animation: cookiePulse 2s ease-in-out infinite;
}

.cookie-title {
    font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
    font-size: 32px;
    color: #F0F0F0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 20px rgba(218, 41, 46, 0.5),
        0 0 40px rgba(218, 41, 46, 0.3);
}

/* Cookie Description */
.cookie-description {
    color: #8B92A3;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-family: 'Rajdhani', sans-serif;
}

/* Cookie Categories */
.cookie-categories {
    margin-bottom: 30px;
}

.cookie-category {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 146, 163, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(218, 41, 46, 0.3);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #F0F0F0;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-title i {
    color: #DA292E;
    font-size: 20px;
}

.category-description {
    color: #8B92A3;
    font-size: 14px;
    line-height: 1.4;
    margin-left: 30px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 146, 163, 0.3);
    transition: all 0.4s ease;
    border-radius: 34px;
    border: 1px solid rgba(139, 146, 163, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #8B92A3;
    transition: all 0.4s ease;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: rgba(218, 41, 46, 0.3);
    border-color: #DA292E;
    box-shadow: 0 0 10px rgba(218, 41, 46, 0.5);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background: #DA292E;
    box-shadow: 0 0 10px rgba(218, 41, 46, 0.8);
}

input:disabled + .toggle-slider {
    cursor: not-allowed;
    opacity: 0.5;
}

input:disabled + .toggle-slider:before {
    background: #666;
}

/* Required Badge */
.required-badge {
    background: rgba(218, 41, 46, 0.2);
    color: #DA292E;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    border: 1px solid rgba(218, 41, 46, 0.3);
}

/* Action Buttons */
.cookie-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.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.7s ease;
}

.cookie-btn:hover::before {
    left: 100%;
}

.btn-reject {
    background: rgba(139, 146, 163, 0.2);
    color: #8B92A3;
    border: 2px solid rgba(139, 146, 163, 0.3);
}

.btn-reject:hover {
    background: rgba(139, 146, 163, 0.3);
    color: #F0F0F0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-accept-selected {
    background: linear-gradient(135deg, #FF6B35 0%, #DA292E 100%);
    color: #F0F0F0;
    border: 2px solid transparent;
}

.btn-accept-selected:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(255, 107, 53, 0.4),
        0 0 30px rgba(255, 107, 53, 0.3);
}

.btn-accept-all {
    background: linear-gradient(135deg, #DA292E 0%, #B91C1C 100%);
    color: #F0F0F0;
    border: 2px solid transparent;
}

.btn-accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(218, 41, 46, 0.4),
        0 0 30px rgba(218, 41, 46, 0.3);
}

/* Cookie Settings Button (Floating) */
.cookie-settings-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.95), rgba(10, 14, 26, 0.95));
    border: 2px solid rgba(218, 41, 46, 0.3);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(218, 41, 46, 0.2);
}

.cookie-settings-btn.active {
    display: flex;
    animation: slideInRight 0.5s ease forwards;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(218, 41, 46, 0.2);
}

.cookie-settings-btn.active {
    display: flex;
    animation: slideInRight 0.5s ease forwards;
}

.cookie-settings-btn:hover {
    transform: scale(1.1) rotate(90deg);
    border-color: #DA292E;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(218, 41, 46, 0.4);
}

.cookie-settings-btn i {
    font-size: 24px;
    color: #DA292E;
    transition: all 0.3s ease;
}

.cookie-settings-btn:hover i {
    color: #FF6B35;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.8));
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cookiePulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(-5deg);
    }
    75% {
        transform: scale(1.05) rotate(5deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        width: 95%;
        padding: 30px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .cookie-title {
        font-size: 24px;
    }

    .cookie-description {
        font-size: 14px;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-settings-btn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .cookie-settings-btn i {
        font-size: 20px;
    }
}

/* Scrollbar Styling for Mobile */
.cookie-banner::-webkit-scrollbar {
    width: 6px;
}

.cookie-banner::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.cookie-banner::-webkit-scrollbar-thumb {
    background: rgba(218, 41, 46, 0.5);
    border-radius: 3px;
}

.cookie-banner::-webkit-scrollbar-thumb:hover {
    background: rgba(218, 41, 46, 0.7);
}