/**
 * GDPR Cookie Consent Banner Styles
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    border-top: 1px solid #e5e7eb;
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.cookie-consent-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-header h3 i {
    color: #6366f1;
}

.cookie-consent-header p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cookie-consent-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid;
}

.cookie-consent-actions .btn-primary {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.cookie-consent-actions .btn-primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

.cookie-consent-actions .btn-outline {
    background: white;
    color: #6366f1;
    border-color: #6366f1;
}

.cookie-consent-actions .btn-outline:hover {
    background: #f3f4f6;
}

.cookie-consent-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.cookie-consent-links a {
    color: #6366f1;
    text-decoration: none;
}

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

/* Cookie Preferences Modal */
.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.cookie-preferences-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-preferences-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.cookie-preference-item {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #f9fafb;
}

.cookie-preference-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.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: 0.3s;
    border-radius: 28px;
}

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

.cookie-switch input:checked + .cookie-slider {
    background-color: #6366f1;
}

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

.cookie-switch input:disabled + .cookie-slider {
    background-color: #6366f1;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-preference-info {
    flex: 1;
}

.cookie-preference-info strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.cookie-required {
    display: inline-block;
    background: #6366f1;
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.cookie-preference-info p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.cookie-preferences-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.manage-cookies-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.875rem;
}

.manage-cookies-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        padding: 1rem;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .cookie-consent-actions .btn {
        width: 100%;
    }
    
    .cookie-preferences-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .cookie-preference-header {
        flex-direction: column;
    }
}
