/* 
 * Przewodnik po Architekturze Polski - Style CSS dla systemu cookies
 * Style dla banera cookie i modalu ustawień
 */

/* ====== BANER COOKIE ====== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: white;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-content h3 {
    margin-bottom: 5px;
    color: white;
}

.cookie-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-cookie-accept,
.btn-cookie-necessary,
.btn-cookie-settings {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.btn-cookie-accept {
    background-color: var(--secondary-color);
    color: white;
}

.btn-cookie-accept:hover {
    background-color: #c0674d;
}

.btn-cookie-necessary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.btn-cookie-necessary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-cookie-settings {
    background-color: var(--bg-light);
    color: var(--dark-color);
}

.btn-cookie-settings:hover {
    background-color: var(--bg-muted);
}

/* ====== MODAL USTAWIEŃ COOKIE ====== */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

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

.cookie-modal-content {
    background-color: white;
    border-radius: var(--border-radius-md);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-cookie-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-speed);
}

.close-cookie-modal:hover {
    color: var(--secondary-color);
}

.cookie-modal-content h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.cookie-option {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cookie-option-title {
    font-weight: 600;
    margin-left: 10px;
}

.cookie-option p {
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-left: 35px;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    position: relative;
    top: 2px;
}

.cookie-settings-buttons {
    display: flex;
    justify-content: flex-end;
}

/* ====== RESPONSYWNOŚĆ ====== */
@media (max-width: 768px) {
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .btn-cookie-accept,
    .btn-cookie-necessary,
    .btn-cookie-settings {
        width: 100%;
    }
    
    .cookie-modal-content {
        padding: 20px;
        width: 95%;
    }
}
