/* =============================================================================
   Avalonia.sk — Cookie Consent Banner
   ============================================================================= */

#avalonia-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: linear-gradient(180deg, rgba(15, 10, 30, 0.98) 0%, rgba(10, 5, 25, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid rgba(138, 43, 226, 0.4);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: cookieSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
}

.cookie-banner-content h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.cookie-banner-content p {
    margin: 0 0 16px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 900px;
}

/* Kategórie */
.cookie-categories {
    margin: 16px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    padding: 16px;
    background: rgba(138, 43, 226, 0.06);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 8px;
}

.cookie-cat {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.cookie-cat:hover {
    background: rgba(138, 43, 226, 0.08);
    border-color: rgba(138, 43, 226, 0.3);
}

.cookie-cat input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #8a2be2;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-cat input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-cat span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cookie-cat strong {
    font-size: 0.92rem;
    color: #c7b8ff;
    font-weight: 600;
}

.cookie-cat small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

/* Buttons */
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 10px 20px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.cookie-btn:hover {
    background: rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.5);
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #8a2be2 0%, #5b1ba8 100%);
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #9b3eef 0%, #6c29c0 100%);
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.5);
    transform: translateY(-1px);
}

.cookie-btn-reject {
    color: rgba(255, 255, 255, 0.7);
}

.cookie-btn-settings {
    color: #c7b8ff;
}

.cookie-btn-save {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.4);
    color: #c7b8ff;
}

/* Footer links */
.cookie-banner-links {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 0.82rem;
}

.cookie-banner-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.cookie-banner-links a:hover {
    color: #c7b8ff;
}

/* Responsive */
@media (max-width: 640px) {
    .cookie-banner-inner {
        padding: 18px 16px;
    }
    
    .cookie-banner-content h3 {
        font-size: 1.05rem;
    }
    
    .cookie-banner-content p {
        font-size: 0.88rem;
    }
    
    .cookie-categories {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner-actions {
        flex-direction: column-reverse;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-banner-links {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}
