/* Cookie Banner & Modal Styles */
/* Add this to a new file: assets/cookies.css or add to your style3.css */

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-banner.cookie-banner--visible {
    transform: translateY(0);
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner__text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: white;
}

.cookie-banner__text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-btn--primary {
    background: linear-gradient(135deg, #8b7355 0%, #a67c52 100%);
    color: white;
}

.cookie-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.4);
}

.cookie-btn--secondary {
    background: white;
    color: #2c2c2c;
}

.cookie-btn--secondary:hover {
    background: #f5f3f0;
    transform: translateY(-2px);
}

.cookie-btn--text {
    background: transparent;
    color: white;
    text-decoration: underline;
}

.cookie-btn--text:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Cookie Modal */
#cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#cookie-modal.cookie-modal--visible {
    opacity: 1;
    visibility: visible;
}

.cookie-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-modal__content {
    position: relative;
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#cookie-modal.cookie-modal--visible .cookie-modal__content {
    transform: scale(1);
}

.cookie-modal__header {
    padding: 1.5rem;
    border-bottom: 1px solid #e8e4df;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal__header h2 {
    margin: 0;
    color: #2c2c2c;
    font-size: 1.5rem;
}

.cookie-modal__close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #4a4a4a;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-modal__close:hover {
    background: #f5f3f0;
    color: #2c2c2c;
}

.cookie-modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fefcf9;
    border-radius: 0.5rem;
    border: 1px solid #e8e4df;
}

.cookie-category__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-category h3 {
    margin: 0 0 0.5rem 0;
    color: #2c2c2c;
    font-size: 1.1rem;
}

.cookie-category p {
    margin: 0;
    color: #4a4a4a;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d4d0ca;
    transition: 0.3s;
    border-radius: 34px;
}

.cookie-toggle__slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
    background-color: #8b7355;
}

.cookie-toggle input:checked + .cookie-toggle__slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-modal__footer {
    padding: 1.5rem;
    border-top: 1px solid #e8e4df;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #cookie-banner {
        padding: 1rem;
    }

    .cookie-banner__content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-banner__text {
        min-width: auto;
    }

    .cookie-banner__buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-modal__content {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-modal__header {
        padding: 1rem;
    }

    .cookie-modal__body {
        padding: 1rem;
    }

    .cookie-modal__footer {
        padding: 1rem;
        flex-direction: column;
    }

    .cookie-modal__footer .cookie-btn {
        width: 100%;
    }

    .cookie-category__header {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .cookie-banner__text h3 {
        font-size: 1.1rem;
    }

    .cookie-banner__text p {
        font-size: 0.85rem;
    }

    .cookie-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .cookie-modal__header h2 {
        font-size: 1.25rem;
    }
}