/**
 * GDPR Cookie Consent Banner
 * Kompaktný a user-friendly banner pre súhlas s cookies
 */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.98);
    color: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    backdrop-filter: blur(10px);
    border-top: 3px solid #0d6efd;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #6ea8fe;
}

.cookie-consent-description {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.cookie-consent-links {
    font-size: 0.85rem;
}

.cookie-consent-links a {
    color: #6ea8fe;
    text-decoration: none;
    margin-right: 1rem;
}

.cookie-consent-links a:hover {
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-consent-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cookie-consent-btn.accept {
    background: #28a745;
    color: white;
}

.cookie-consent-btn.accept:hover {
    background: #218838;
}

.cookie-consent-btn.reject {
    background: #6c757d;
    color: white;
}

.cookie-consent-btn.reject:hover {
    background: #5a6268;
}

.cookie-consent-btn.customize {
    background: transparent;
    color: #6ea8fe;
    border: 1px solid #6ea8fe;
}

.cookie-consent-btn.customize:hover {
    background: #6ea8fe;
    color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem 0.75rem;
    }
    
    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cookie-consent-text {
        min-width: auto;
        text-align: center;
    }
    
    .cookie-consent-actions {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .cookie-consent-btn {
        flex: 1;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .cookie-consent-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .cookie-consent-description {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .cookie-consent-links {
        font-size: 0.8rem;
    }
}

/* Cookie settings modal */
.cookie-settings-modal .modal-header {
    background: #0d6efd;
    color: white;
    border-bottom: none;
}

.cookie-settings-modal .modal-header .btn-close {
    filter: invert(1);
}

.cookie-category {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cookie-category-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category-title {
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.cookie-category-toggle {
    margin-left: auto;
}

.cookie-category-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.cookie-category.essential {
    background: #f8f9fa;
    border-color: #28a745;
}

.cookie-category.essential .cookie-category-title {
    color: #28a745;
}

/* Dark theme support */
[data-theme="dark"] .cookie-consent {
    background: rgba(248, 249, 250, 0.98);
    color: #212529;
    border-top-color: #6ea8fe;
}

[data-theme="dark"] .cookie-consent-title {
    color: #0d6efd;
}

[data-theme="dark"] .cookie-consent-links a {
    color: #0d6efd;
}

[data-theme="dark"] .cookie-settings-modal .modal-content {
    background: #f8f9fa;
    color: #212529;
}

[data-theme="dark"] .cookie-category {
    border-color: #dee2e6;
    background: white;
}

[data-theme="dark"] .cookie-category:hover {
    border-color: #0d6efd;
}