/**
 * Cookie Consent Styles - GDPR/UK DPA Compliant
 * Professional Windows-like appearance
 */

/* Cookie Consent Banner */
#cookieConsentBanner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #ff6b6b 0%, #ee5a5a 100%);
    border-bottom: 3px solid #d63384;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    padding: 20px;
    z-index: 9999;
    display: none;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Pulsing effect to grab attention */
#cookieConsentBanner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cookie-consent-text p {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.cookie-consent-text a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cookie-consent-text a:hover {
    color: #f8f9fa;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-consent-buttons .btn {
    padding: 8px 20px;
    font-weight: 500;
    border-radius: 3px;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cookie-consent-buttons .btn-primary {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #d63384;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-consent-buttons .btn-primary:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cookie-consent-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.cookie-consent-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.cookie-consent-buttons .btn-link {
    color: #ffffff;
    text-decoration: underline;
    padding: 8px 12px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cookie-consent-buttons .btn-link:hover {
    color: #f8f9fa;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Cookie Settings Modal */
.modal-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    border-bottom: 2px solid #0078d4;
}

.modal-title {
    color: #2b2b2b;
    font-weight: 600;
}

.cookie-category {
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    margin-bottom: 15px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    background: #f5f5f5;
    border-color: #0078d4;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category-title {
    font-weight: 600;
    color: #2b2b2b;
    font-size: 1rem;
}

.cookie-category-description {
    color: #5a5a5a;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.cookie-category .form-check {
    margin: 0;
}

.cookie-category .form-check-input {
    width: 44px;
    height: 24px;
    background-color: #e1e1e1;
    border-color: #d1d1d1;
    cursor: pointer;
    position: relative;
}

.cookie-category .form-check-input:checked {
    background-color: #0078d4;
    border-color: #0078d4;
}

.cookie-category .form-check-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-category .form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.25);
}

.cookie-required-badge {
    display: inline-block;
    background: #107c10;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

/* Cookie Notification Toast */
.cookie-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #107c10;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.cookie-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Cookie Settings Link in Footer */
.cookie-settings-link {
    cursor: pointer;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cookie-settings-link:hover {
    color: #0078d4;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    #cookieConsentBanner {
        padding: 15px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-text {
        min-width: auto;
        margin-bottom: 15px;
    }
    
    .cookie-consent-buttons {
        justify-content: stretch;
        flex-direction: column;
    }
    
    .cookie-consent-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    .cookie-notification {
        left: 20px;
        right: 20px;
        bottom: 80px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    #cookieConsentBanner {
        animation: none;
    }
    
    #cookieConsentBanner::before {
        animation: none;
    }
    
    .cookie-notification {
        transition: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    #cookieConsentBanner {
        border-top-width: 4px;
    }
    
    .cookie-category {
        border-width: 2px;
    }
    
    .cookie-consent-buttons .btn {
        border-width: 2px;
    }
}