/* Cookie Consent Styles */

/* Cookie Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 1rem 2rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent-content a {
    color: #4dabf7;
    text-decoration: none;
    font-weight: 500;
}

.cookie-consent-content a:hover {
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-settings-btn {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

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

.cookie-accept-btn {
    background-color: #4dabf7;
    color: #fff;
}

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

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
}

.cookie-settings-modal-content {
    background-color: #fff;
    margin: 2rem auto;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: #333;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

.cookie-settings-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.close-cookie-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    padding: 0 0.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.close-cookie-modal:hover {
    color: #333;
}

.cookie-settings-body {
    padding: 1.5rem 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-settings-body p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.cookie-category {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #eee;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-category-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.cookie-category-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
    margin-left: 1rem;
}

.cookie-switch 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: 34px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #4dabf7;
}

input:focus + .cookie-slider {
    box-shadow: 0 0 1px #4dabf7;
}

input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-settings-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.cookie-save-btn {
    background-color: #4dabf7;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cookie-save-btn:hover {
    background-color: #339af0;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-settings-modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .cookie-category-header {
        flex-direction: column;
    }
    
    .cookie-switch {
        align-self: flex-end;
    }
}

/* Accessibility */
.cookie-settings-modal:focus {
    outline: none;
}

.cookie-settings-modal-content:focus {
    outline: 2px solid #4dabf7;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: more) {
    .cookie-consent-banner {
        border-top: 3px solid #fff;
    }
    
    .cookie-category {
        border: 2px solid #000;
    }
    
    .cookie-btn {
        border: 2px solid transparent;
    }
    
    .cookie-settings-btn {
        border: 2px solid #fff !important;
    }
}
