/* 
* Cookie Manager Stylesheet for Odkryj Polskę - Poland Tourism Guide
* Author: Appetitnaya Soli
* Version: 1.0
*/

/* ======= COOKIE CONSENT BANNER ======= */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content h3 {
    color: var(--text-light);
    margin-bottom: 10px;
}

.cookie-content p {
    margin-bottom: 20px;
    max-width: 800px;
}

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

.cookie-btn {
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn.secondary {
    background-color: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
}

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

.cookie-btn.text {
    background-color: transparent;
    border: none;
    color: var(--text-light);
    text-decoration: underline;
    padding: 8px 10px;
}

.cookie-btn.text:hover {
    color: var(--primary-light);
}

/* ======= COOKIE SETTINGS MODAL ======= */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    visibility: visible;
    opacity: 1;
}

.cookie-modal-content {
    background-color: var(--bg-light);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.cookie-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--bg-light);
    z-index: 1;
}

.cookie-modal-header h3 {
    margin: 0;
}

.cookie-close {
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.cookie-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.cookie-modal-body p {
    margin-bottom: 20px;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-option {
    background-color: var(--bg-grey);
    padding: 15px;
    border-radius: 5px;
}

.cookie-option-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-option-header input {
    margin-right: 10px;
}

.cookie-option-header label {
    font-weight: 500;
    font-size: 16px;
}

.cookie-option p {
    margin: 0;
    font-size: 14px;
    color: var(--text-medium);
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background-color: var(--bg-light);
    z-index: 1;
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        margin-top: 15px;
        justify-content: center;
    }
    
    .cookie-buttons button {
        margin: 5px;
    }
}

@media (max-width: 576px) {
    .cookie-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 15px;
    }
    
    .cookie-option {
        padding: 10px;
    }
    
    .cookie-option-header label {
        font-size: 14px;
    }
    
    .cookie-option p {
        font-size: 12px;
    }
}
