/* GDPR Cookie Consent Styles */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    display: none;
}

.cookie-banner.cookie-banner-show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.cookie-banner-text p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

.cookie-banner-text a {
    color: #3498db;
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-settings-btn {
    background: none;
    border: none;
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.cookie-settings-btn:hover {
    color: #2980b9;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.cookie-btn-reject {
    background: transparent;
    color: white;
    border: 2px solid #95a5a6;
}

.cookie-btn-reject:hover {
    background: #95a5a6;
    color: #2c3e50;
}

.cookie-btn-accept,
.cookie-btn-accept-all,
.cookie-btn-save {
    background: #27ae60;
    color: white;
}

.cookie-btn-accept:hover,
.cookie-btn-accept-all:hover,
.cookie-btn-save:hover {
    background: #219a52;
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    padding: 20px;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #e9ecef;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-modal-body > p {
    margin: 0 0 20px 0;
    color: #495057;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-category h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
}

.cookie-required {
    background: #27ae60;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.cookie-category p {
    margin: 0 0 12px 0;
    color: #495057;
    line-height: 1.5;
    font-size: 0.9rem;
}

.cookie-category ul {
    margin: 0;
    padding-left: 20px;
    color: #6c757d;
}

.cookie-category li {
    margin-bottom: 4px;
    font-size: 0.85rem;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #27ae60;
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-modal-footer {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-modal {
        padding: 10px;
    }

    .cookie-modal-content {
        max-height: 95vh;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-btn {
        order: 1;
    }

    .cookie-btn-save {
        order: 2;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 16px;
    }

    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }

    .cookie-banner-text p {
        font-size: 0.85rem;
    }

    .cookie-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 100px;
    }

    .cookie-modal-header h2 {
        font-size: 1.3rem;
    }

    .cookie-category {
        padding: 16px;
    }
}

/* Accessibility improvements */
.cookie-btn:focus,
.cookie-settings-btn:focus,
.cookie-modal-close:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.cookie-toggle input:focus + .cookie-slider {
    box-shadow: 0 0 0 2px #3498db;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-banner {
        border-top: 2px solid white;
    }

    .cookie-btn-reject {
        border-color: white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-btn,
    .cookie-slider,
    .cookie-slider:before,
    .cookie-modal-content {
        transition: none;
    }

    @keyframes modalSlideIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}