/**
 * Additional CSS - VEHYSTER LIMITED
 * Cookie banner, utilities, and custom styles
 */

/* Ensure cookie banner is accessible */
#cookieBanner {
    font-family: var(--font-body, 'Inter', sans-serif);
}

#cookieBanner button {
    transition: all 0.3s ease;
    font-family: inherit;
}

#cookieBanner #acceptCookies:hover {
    background: var(--accent-2);
    box-shadow: 0 4px 12px rgba(244, 114, 182, 0.3);
}

#cookieBanner #rejectCookies:hover {
    border-color: #999;
    background: #f5f5f5;
}

/* Responsive cookie banner */
@media (max-width: 768px) {
    #cookieBanner {
        padding: 15px;
    }

    #cookieBanner .container {
        flex-direction: column;
        align-items: flex-start !important;
    }

    #cookieBanner > div {
        flex-direction: column;
        align-items: flex-start !important;
    }

    #cookieBanner div > div:first-child {
        width: 100%;
        margin-bottom: 10px;
    }

    #cookieBanner > div > div:last-child {
        width: 100%;
        justify-content: flex-end;
    }

    #closeCookieBanner {
        position: static;
        margin-top: 10px;
        text-align: right;
        width: 100%;
    }
}

/* Accessibility improvements */
#cookieBanner a {
    text-decoration: underline;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: outline 0.2s;
}

#cookieBanner a:focus {
    outline-color: #F472B6;
}

#cookieBanner button:focus {
    outline: 2px solid #F472B6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    #cookieBanner {
        border-top-width: 3px;
    }

    #cookieBanner #acceptCookies {
        border: 2px solid transparent;
    }

    #cookieBanner #rejectCookies {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #cookieBanner button {
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #cookieBanner {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    #cookieBanner p {
        color: #e0e0e0;
    }

    #cookieBanner #rejectCookies {
        border-color: #444;
        background: #222;
        color: #e0e0e0;
    }

    #cookieBanner #rejectCookies:hover {
        background: #333;
        border-color: #666;
    }
}

/* Utility classes for common styling */
.text-accent {
    color: var(--accent-1) !important;
}

.text-accent-2 {
    color: var(--accent-2) !important;
}

.text-muted-custom {
    color: #555555 !important;
}

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mb-60 { margin-bottom: 60px; }

/* Print styles */
@media print {
    #cookieBanner,
    .scroll-top,
    .mobile-toggle {
        display: none !important;
    }
}

/* Fix footer text contrast */
.site-footer {
    background: #1a1a2e !important;
    color: #ffffff !important;
}

.site-footer p {
    color: #ffffff !important;
}

.footer-widget p {
    color: #ffffff !important;
}

.footer-policy a {
    color: #ffffff !important;
}

.footer-links a {
    color: #ffffff !important;
}

/* Loading animations */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Link hover effects */
a:not(.btn-custom):not(.btn-link-custom):not(.btn-outline-custom):not(.nav-link) {
    position: relative;
    text-decoration: none;
    color: var(--accent-1);
}

a:not(.btn-custom):not(.btn-link-custom):not(.btn-outline-custom):not(.nav-link):hover {
    text-decoration: underline;
}

/* Table responsive */
@media (max-width: 576px) {
    table {
        font-size: 12px;
    }

    table td,
    table th {
        padding: 8px !important;
    }
}

/* Form improvements */
.form-control:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 0.2rem rgba(244, 114, 182, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Selection color */
::selection {
    background-color: var(--accent-1);
    color: white;
}

::-moz-selection {
    background-color: var(--accent-1);
    color: white;
}
/* ================================================================
   POLICY PAGES - TEXT CONTRAST FIXES
================================================================ */
.policy-content p {
    color: #333333 !important;
    line-height: 1.8;
    margin-bottom: 16px;
}

.policy-content ul, 
.policy-content ol {
    color: #333333 !important;
    padding-left: 24px;
    margin-bottom: 16px;
}

.policy-content li {
    color: #333333 !important;
    margin-bottom: 8px;
    line-height: 1.7;
}

.policy-content h1,
.policy-content h2,
.policy-content h3,
.policy-content h4 {
    color: #222222 !important;
}