/* POPIA Cookie Consent Popup */
.cookie-consent-wrapper {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 20px;
    transition: bottom 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.cookie-consent-wrapper.show {
    bottom: 0;
    pointer-events: auto;
}

.cookie-consent {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    padding: 25px 30px;
    box-shadow: 0 -10px 50px rgba(255, 140, 0, 0.3);
    border: 2px solid rgba(255, 140, 0, 0.4);
    border-bottom: none;
    position: relative;
    overflow: hidden;
    animation: slideUpBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUpBounce {
    0% {
        transform: translateY(100%) scale(0.9);
        opacity: 0;
    }
    60% {
        transform: translateY(-10px) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Animated background particles */
.cookie-consent::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: particleRotate 20s linear infinite;
    pointer-events: none;
}

@keyframes particleRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cookie icon animation */
.cookie-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 60px;
    opacity: 0.15;
    animation: cookieBounce 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cookieBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(-5deg); }
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.cookie-emoji {
    font-size: 48px;
    flex-shrink: 0;
    animation: cookiePulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 140, 0, 0.6));
}

@keyframes cookiePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cookie-text {
    flex: 1;
}

.cookie-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff8c00 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.cookie-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 5px;
}

.cookie-links {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.cookie-links a {
    color: #ff8c00;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.cookie-links a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cookie-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cookie-btn span {
    position: relative;
    z-index: 1;
}

.btn-accept {
    background: linear-gradient(135deg, #ff8c00 0%, #ffd700 100%);
    color: #000;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4);
}

.btn-accept:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 140, 0, 0.6);
}

.btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-decline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 140, 0, 0.3);
    padding: 12px 20px;
}

.btn-settings:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: rgba(255, 140, 0, 0.5);
    color: #ff8c00;
}

/* POPIA Badge */
.popia-badge {
    position: absolute;
    top: 15px;
    left: 30px;
    background: rgba(52, 199, 89, 0.2);
    border: 1px solid rgba(52, 199, 89, 0.4);
    color: #34c759;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.popia-badge i {
    font-size: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-wrapper {
        padding: 0;
    }

    .cookie-consent {
        border-radius: 20px 20px 0 0;
        padding: 20px 20px 25px;
    }

    .cookie-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .cookie-emoji {
        font-size: 40px;
    }

    .cookie-title {
        font-size: 20px;
    }

    .cookie-description {
        font-size: 13px;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .cookie-icon {
        font-size: 40px;
        top: 10px;
        right: 20px;
    }

    .popia-badge {
        position: static;
        margin-bottom: 10px;
        justify-content: center;
    }
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-settings-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(0, 0, 0, 0.95) 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    border: 2px solid rgba(255, 140, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInScale 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInScale {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cookie-settings-header h3 {
    font-size: 24px;
    color: #fff;
    background: linear-gradient(135deg, #ff8c00 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cookie-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close:hover {
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    transform: rotate(90deg);
}

.cookie-option {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-option-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #ff8c00 0%, #ffd700 100%);
}

.cookie-toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-option-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.cookie-settings-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.cookie-settings-actions .cookie-btn {
    flex: 1;
}
