/* ============================================
   COOKIE BANNER
   ============================================ */

/* Banner Cookies */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: none;
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cookie-banner.show {
    display: block;
}

/* Kontener zawartości bannera */
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Tekst bannera */
.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    margin: 0 0 10px 0;
    font-size: 0.95em;
    text-align: left;
    color: #333333;
}

.cookie-text p:last-child {
    margin-bottom: 0;
}

.cookie-text strong {
    font-weight: 600;
    color: #2c3e50;
}

.cookie-text a {
    color: #3498db;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-text a:hover {
    color: #2980b9;
}

/* Kontener przycisków */
.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Style przycisków */
.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cookie-buttons button:active {
    transform: translateY(0);
}

/* Przycisk główny - "Akceptuj wszystkie" */
#accept-all {
    background-color: #3498db;
    color: #ffffff;
}

#accept-all:hover {
    background-color: #2980b9;
}

/* Przycisk drugorzędny - "Tylko niezbędne" */
#accept-necessary {
    background-color: #ecf0f1;
    color: #2c3e50;
}

#accept-necessary:hover {
    background-color: #bdc3c7;
}

/* Przycisk tekstowy - "Ustawienia" */
#cookie-settings {
    background-color: transparent;
    color: #7f8c8d;
    text-decoration: underline;
    padding: 10px 15px;
}

#cookie-settings:hover {
    color: #2c3e50;
    background-color: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
    #cookie-banner {
        padding: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookie-text {
        min-width: 100%;
    }
    
    .cookie-text p {
        font-size: 0.9em;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Dodatkowe style dla bardzo małych ekranów */
@media (max-width: 480px) {
    #cookie-banner {
        padding: 12px;
    }
    
    .cookie-text p {
        font-size: 0.85em;
    }
    
    .cookie-buttons button {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}

/* Motyw ciemny (opcjonalnie) */
@media (prefers-color-scheme: dark) {
    #cookie-banner {
        background-color: #2c3e50;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .cookie-text p {
        color: #ecf0f1;
    }
    
    .cookie-text strong {
        color: #ffffff;
    }
    
    .cookie-text a {
        color: #5dade2;
    }
    
    .cookie-text a:hover {
        color: #85c1e9;
    }
    
    #accept-necessary {
        background-color: #34495e;
        color: #ecf0f1;
    }
    
    #accept-necessary:hover {
        background-color: #4a5f7f;
    }
    
    #cookie-settings {
        color: #95a5a6;
    }
    
    #cookie-settings:hover {
        color: #ecf0f1;
        background-color: rgba(255, 255, 255, 0.1);
    }
}