/**
 * Cookie Consent Banner Styles
 * 
 * @package CockpitOS_Light_Theme
 * @version 1.0.0
 */

/* Banner Container */
.cockpit-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    padding: 1.5rem;
    animation: slideUp 0.4s ease;
}

.cockpit-cookie-banner--bottom {
    bottom: 0;
}

.cockpit-cookie-banner--top {
    top: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.cockpit-cookie-banner__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Simple Layout */
.cockpit-cookie-banner[data-layout="simple"] .cockpit-cookie-banner__container {
    flex-wrap: wrap;
}

.cockpit-cookie-banner__content {
    flex: 1;
    min-width: 300px;
}

.cockpit-cookie-banner__heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1e293b;
}

.cockpit-cookie-banner__text {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.cockpit-cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Buttons */
.cockpit-cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cockpit-cookie-btn--accept-all {
    background: var(--color-primary, #dc2626);
    color: #ffffff;
}

.cockpit-cookie-btn--accept-all:hover {
    background: var(--color-primary-dark, #b91c1c);
    transform: translateY(-2px);
}

.cockpit-cookie-btn--essential {
    background: #f1f5f9;
    color: #64748b;
}

.cockpit-cookie-btn--essential:hover {
    background: #e2e8f0;
}

.cockpit-cookie-btn--settings {
    background: transparent;
    color: #64748b;
    text-decoration: underline;
}

.cockpit-cookie-btn--save {
    background: var(--color-primary, #dc2626);
    color: #ffffff;
}

/* Detailed Layout */
.cockpit-cookie-banner__detailed {
    width: 100%;
}

.cockpit-cookie-banner__header {
    margin-bottom: 1.5rem;
}

.cockpit-cookie-banner__categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cockpit-cookie-category {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.cockpit-cookie-category__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #1e293b;
}

.cockpit-cookie-category__checkbox {
    width: 18px;
    height: 18px;
}

.cockpit-cookie-category__required {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 400;
}

.cockpit-cookie-category__description {
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* Settings Button (Floating) */
.cockpit-cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary, #dc2626);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cockpit-cookie-settings-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .cockpit-cookie-banner {
        padding: 1rem;
    }
    
    .cockpit-cookie-banner__container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cockpit-cookie-banner__actions {
        width: 100%;
    }
    
    .cockpit-cookie-btn {
        flex: 1;
        justify-content: center;
    }
    
    .cockpit-cookie-banner__categories {
        grid-template-columns: 1fr;
    }
}

/* Floating Cookie Settings Button - Icon Only (Einheitlich mit anderen Buttons) */
.cockpit-cookie-settings-btn {
    position: fixed;
    bottom: 2rem; /* Einheitlich: 32px */
    left: 50%; /* MITTIG! */
    transform: translateX(-50%); /* Perfekt zentriert */
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%; /* Rund! */
    width: 56px; /* Einheitlich mit Back-to-Top & Chatbot */
    height: 56px;
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
    padding: 0; /* Kein Padding - nur Icon */
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    z-index: 999998;
    transition: all 0.3s ease;
}

.cockpit-cookie-settings-btn:hover {
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    transform: translateX(-50%) translateY(-3px) scale(1.05); /* Einheitlicher Hover */
}

.cockpit-cookie-settings-btn:active {
    transform: translateX(-50%) translateY(-2px) scale(0.95); /* Einheitlicher Active */
}

.cockpit-cookie-settings-btn svg {
    width: 24px; /* Einheitlich */
    height: 24px;
    flex-shrink: 0;
}

/* Responsive - Einheitlich mit anderen Buttons */
@media (max-width: 768px) {
    .cockpit-cookie-settings-btn {
        bottom: 1rem; /* Einheitlich: 16px */
        width: 48px; /* Einheitlich */
        height: 48px;
    }
    
    .cockpit-cookie-settings-btn svg {
        width: 20px; /* Einheitlich */
        height: 20px;
    }
}
