/* Cookie Banner Styles - Premium Edition - Solventa Digital Solutions */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 2rem;
    transform: translateY(calc(100% + 2rem));
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.cookie-banner.hide {
    transform: translateY(calc(100% + 2rem));
}

.cookie-banner-backdrop {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200%;
    background: radial-gradient(ellipse at bottom, rgba(0, 113, 227, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 80px rgba(0, 113, 227, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 -10px 40px rgba(147, 51, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.cookie-banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0071e3 0%, #9333ea 50%, #0071e3 100%);
    background-size: 200% 100%;
    animation: gradientFlow 4s ease infinite;
}

.cookie-banner-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.1) 0%, transparent 70%);
    animation: glowRotate 10s linear infinite;
    pointer-events: none;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes glowRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cookie-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.2), rgba(147, 51, 234, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 
        0 8px 24px rgba(0, 113, 227, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: iconFloat 3s ease-in-out infinite;
}

.cookie-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #0071e3, #9333ea);
    border-radius: 22px;
    opacity: 0;
    z-index: -1;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes iconPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

.cookie-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 4px 8px rgba(0, 113, 227, 0.5));
}

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

.cookie-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.3rem 0;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0, 113, 227, 0.3);
}

.cookie-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-weight: 400;
}

.cookie-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cookie-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cookie-btn .btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cookie-btn:hover .btn-icon {
    transform: scale(1.2);
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cookie-btn:hover::before {
    left: 100%;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #0071e3, #9333ea);
    color: #fff;
    box-shadow: 
        0 8px 24px rgba(0, 113, 227, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.cookie-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 36px rgba(147, 51, 234, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(147, 51, 234, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.3);
}

.cookie-btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.cookie-btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.cookie-privacy-link {
    color: #0071e3;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.cookie-privacy-link svg {
    transition: transform 0.3s ease;
}

.cookie-privacy-link:hover {
    color: #9333ea;
}

.cookie-privacy-link:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-modal-content {
    position: relative;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 30px 100px rgba(0, 113, 227, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.cookie-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0071e3 0%, #9333ea 50%, #0071e3 100%);
    background-size: 200% 100%;
    animation: gradientFlow 4s ease infinite;
}

.cookie-modal-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
    pointer-events: none;
    animation: modalGlowPulse 3s ease-in-out infinite;
}

@keyframes modalGlowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 2rem;
}

.modal-header-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.modal-header-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(0, 113, 227, 0.5));
}

.cookie-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.03em;
    flex: 1;
    text-shadow: 0 2px 10px rgba(0, 113, 227, 0.3);
}

.cookie-modal-close {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.5rem;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal-close:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.3);
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 2.5rem;
}

.cookie-modal-intro {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cookie-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.05), rgba(147, 51, 234, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(147, 51, 234, 0.3);
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.15);
}

.cookie-category:hover::before {
    opacity: 1;
}

.cookie-category-active {
    border-color: rgba(0, 113, 227, 0.4);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.cookie-category-info {
    flex: 1;
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.category-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #0071e3;
}

.cookie-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.cookie-category-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0;
}

/* Toggle Switch - Premium Version */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    flex-shrink: 0;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 32px;
    box-shadow: 0 0 0 rgba(0, 113, 227, 0);
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 2.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #0071e3, #9333ea);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.5);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(28px);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.cookie-toggle-locked {
    opacity: 0.6;
}

.cookie-toggle-locked .cookie-toggle-slider {
    cursor: not-allowed;
    background: rgba(0, 113, 227, 0.2);
    border-color: rgba(0, 113, 227, 0.3);
}

.cookie-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.cookie-detail-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 113, 227, 0.1);
    border: 1px solid rgba(0, 113, 227, 0.25);
    border-radius: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
}

.cookie-detail-item:hover {
    background: rgba(0, 113, 227, 0.2);
    border-color: rgba(0, 113, 227, 0.4);
    transform: translateY(-2px);
}

.cookie-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

/* Fixed Settings Button */
.cookie-settings-fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0071e3, #9333ea);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 32px rgba(0, 113, 227, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999998;
    animation: settingsButtonAppear 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes settingsButtonAppear {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.cookie-settings-fixed:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 
        0 12px 48px rgba(147, 51, 234, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.2) inset;
}

.cookie-settings-fixed svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Scrollbar für Modal */
.cookie-modal-content::-webkit-scrollbar {
    width: 10px;
}

.cookie-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 10px 0;
}

.cookie-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0071e3, #9333ea);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.9);
}

.cookie-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9333ea, #0071e3);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-banner-content {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .cookie-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .cookie-icon {
        width: 32px;
        height: 32px;
    }

    .cookie-title {
        font-size: 1.4rem;
    }

    .cookie-subtitle {
        font-size: 0.85rem;
    }

    .cookie-text {
        font-size: 0.95rem;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .cookie-modal {
        padding: 1rem;
    }

    .cookie-modal-content {
        border-radius: 24px;
        max-height: 92vh;
    }

    .cookie-modal-header {
        padding: 2rem 1.5rem;
        flex-wrap: wrap;
    }

    .modal-header-icon {
        width: 40px;
        height: 40px;
    }

    .cookie-modal-title {
        font-size: 1.5rem;
        flex: 1 1 100%;
        order: 2;
    }

    .cookie-modal-close {
        order: 1;
        width: 40px;
        height: 40px;
    }

    .cookie-modal-body {
        padding: 2rem 1.5rem;
    }

    .cookie-modal-intro {
        font-size: 0.95rem;
    }

    .cookie-modal-footer {
        padding: 2rem 1.5rem;
        flex-direction: column;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }

    .cookie-category {
        padding: 1.5rem;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 1rem;
    }

    .category-title-wrapper {
        width: 100%;
    }

    .cookie-toggle {
        align-self: flex-start;
    }

    .cookie-settings-fixed {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 54px;
        height: 54px;
    }

    .cookie-settings-fixed svg {
        width: 24px;
        height: 24px;
    }
}

/* Animations for better UX */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-modal-content,
    .cookie-btn,
    .cookie-settings-fixed {
        animation: none;
        transition: none;
    }
}
