/*
Theme Name: Taxi Richard Sneek
Theme URI: https://www.taxirichardsneek.nl
Author: Taxi Richard Sneek
Author URI: https://www.taxirichardsneek.nl
Description: Custom theme voor Taxi Richard Sneek - Al meer dan 20 jaar uw vertrouwde taxi in Sneek en omgeving
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taxi-richard
Tags: one-column, custom-menu, featured-images, translation-ready

Al meer dan 20 jaar uw vertrouwde taxi in Sneek en omgeving
*/

/* ========================================
   Inter Font (Self-hosted)
   ======================================== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('./assets/fonts/inter-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./assets/fonts/inter-latin-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('./assets/fonts/inter-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('./assets/fonts/inter-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./assets/fonts/inter-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('./assets/fonts/inter-latin-800.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('./assets/fonts/inter-latin-900.woff2') format('woff2');
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
}

/* ========================================
   Trustindex Widget - Light & Dark Mode
   ======================================== */

/* Light Mode (default) */
.trustindex-widget .ti-widget {
    background: transparent !important;
}

.trustindex-widget .ti-widget-container {
    background: transparent !important;
}

.trustindex-widget .ti-review-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    margin: 0.5rem 0.5rem !important;
}

.trustindex-widget .ti-review-item:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.trustindex-widget .ti-review-item .ti-inner {
    background: transparent !important;
    background-color: transparent !important;
}

/* Extra specificity to override Trustindex !important */
.trustindex-widget .ti-widget .ti-reviews-container .ti-review-item .ti-inner,
body .trustindex-widget .ti-review-item .ti-inner,
html body .trustindex-widget .ti-inner {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.trustindex-widget .ti-name {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.trustindex-widget .ti-date,
.trustindex-widget .ti-date span {
    color: #64748b !important;
}

.trustindex-widget .ti-review-text-container {
    color: #475569 !important;
    line-height: 1.6 !important;
}

.trustindex-widget .ti-read-more span {
    color: #0ea5e9 !important;
    font-weight: 600 !important;
}

.trustindex-widget .ti-controls .ti-prev,
.trustindex-widget .ti-controls .ti-next {
    background: #0f172a !important;
    border-radius: 50% !important;
    opacity: 0.9 !important;
}

.trustindex-widget .ti-controls .ti-prev::before,
.trustindex-widget .ti-controls .ti-next::before {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.trustindex-widget .ti-controls .ti-prev:hover,
.trustindex-widget .ti-controls .ti-next:hover {
    background: #0ea5e9 !important;
    opacity: 1 !important;
}

.trustindex-widget .ti-controls .ti-prev:hover::before,
.trustindex-widget .ti-controls .ti-next:hover::before {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {

    .trustindex-widget .ti-widget,
    .trustindex-widget .ti-widget-container {
        background: transparent !important;
    }

    .trustindex-widget .ti-review-item {
        background: #1e293b !important;
        border-color: #334155 !important;
    }

    /* Override ti-inner background in dark mode */
    .trustindex-widget .ti-widget .ti-reviews-container .ti-review-item .ti-inner,
    body .trustindex-widget .ti-review-item .ti-inner,
    html body .trustindex-widget .ti-inner {
        background: #1e293b !important;
        background-color: #1e293b !important;
    }

    .trustindex-widget .ti-review-item:hover {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
    }

    .trustindex-widget .ti-name {
        color: #f1f5f9 !important;
    }

    .trustindex-widget .ti-date,
    .trustindex-widget .ti-date span {
        color: #94a3b8 !important;
    }

    .trustindex-widget .ti-review-text-container {
        color: #cbd5e1 !important;
    }

    .trustindex-widget .ti-read-more span {
        color: #38bdf8 !important;
    }

    .trustindex-widget .ti-controls .ti-prev,
    .trustindex-widget .ti-controls .ti-next {
        background: #475569 !important;
    }

    .trustindex-widget .ti-controls .ti-prev::before,
    .trustindex-widget .ti-controls .ti-next::before {
        color: #ffffff !important;
        border-color: #ffffff !important;
    }

    .trustindex-widget .ti-controls .ti-prev:hover,
    .trustindex-widget .ti-controls .ti-next:hover {
        background: #0ea5e9 !important;
    }

    .trustindex-widget .ti-controls .ti-prev:hover::before,
    .trustindex-widget .ti-controls .ti-next:hover::before {
        color: #ffffff !important;
        border-color: #ffffff !important;
    }

    /* Tooltips in dark mode */
    .trustindex-widget .ti-tooltip,
    .trustindex-widget .ti-verified-tooltip {
        background: #334155 !important;
        color: #f1f5f9 !important;
    }

    /* Load more button dark mode */
    .ti-load-more-reviews-button,
    .trustindex-widget .ti-load-more-reviews-button,
    .ti-widget .ti-load-more-reviews-button,
    body .ti-load-more-reviews-button {
        background: #334155 !important;
        color: #f1f5f9 !important;
        border-color: #475569 !important;
    }

    .ti-load-more-reviews-button:hover,
    .trustindex-widget .ti-load-more-reviews-button:hover,
    body .ti-load-more-reviews-button:hover {
        background: #0ea5e9 !important;
        color: #ffffff !important;
        border-color: #0ea5e9 !important;
    }
}

/* Load more button - Light mode */
.ti-load-more-reviews-button,
.trustindex-widget .ti-load-more-reviews-button,
.ti-widget .ti-load-more-reviews-button,
body .ti-load-more-reviews-button,
.ti-load-more-reviews-container .ti-load-more-reviews-button,
div.ti-load-more-reviews-button,
.ti-widget.ti-goog .ti-load-more-reviews-container .ti-load-more-reviews-button {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 1.5rem !important;
}

.ti-load-more-reviews-button:hover,
.trustindex-widget .ti-load-more-reviews-button:hover,
body .ti-load-more-reviews-button:hover,
.ti-widget.ti-goog .ti-load-more-reviews-container .ti-load-more-reviews-button:hover {
    background: #0ea5e9 !important;
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
    border-color: #0ea5e9 !important;
}

/* General widget improvements */
.trustindex-widget .ti-review-item .ti-profile-img img {
    border-radius: 50% !important;
    border: 2px solid #0ea5e9 !important;
}

.trustindex-widget .ti-stars img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Smooth transitions */
.trustindex-widget .ti-review-item,
.trustindex-widget .ti-name,
.trustindex-widget .ti-date,
.trustindex-widget .ti-review-text-container {
    transition: all 0.3s ease !important;
}

/* ========================================
   Trustindex Widget - Alignment & Slider Fixes
   ======================================== */

/* Fix review cards alignment - equal heights */
.trustindex-widget .ti-reviews-container {
    align-items: start !important;
    align-content: start !important;
}

.trustindex-widget .ti-reviews-container-wrapper {
    align-items: start !important;
}

/* Masonry grid - align items to top */
.trustindex-widget .ti-widget {
    align-items: start !important;
}

.trustindex-widget .ti-widget-container {
    align-items: start !important;
}

/* Remove any top margin/padding from reviews container */
.trustindex-widget .ti-reviews-container,
.trustindex-widget .ti-reviews-container-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Column layout - add gap between columns */
.trustindex-widget .ti-reviews-container-wrapper {
    display: flex !important;
    gap: 1rem !important;
}

/* Each column - add gap between stacked reviews */
.trustindex-widget .ti-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

/* Gap between review cards */
.ti-widget.ti-goog .ti-review-item {
    margin-top: 1rem !important;
}

.trustindex-widget .ti-review-item .ti-inner {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    flex: 1 !important;
}

.trustindex-widget .ti-review-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.trustindex-widget .ti-review-text-container {
    flex: 1 !important;
}

/* Slider - show and slide one at a time */
.trustindex-widget .ti-widget {
    --ti-visible-count: 1 !important;
}

@media (min-width: 640px) {
    .trustindex-widget .ti-widget {
        --ti-visible-count: 2 !important;
    }
}

@media (min-width: 1024px) {
    .trustindex-widget .ti-widget {
        --ti-visible-count: 3 !important;
    }
}

/* Override slider scroll behavior - one card at a time */
.trustindex-widget .ti-reviews-container {
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
}

.trustindex-widget .ti-review-item {
    scroll-snap-align: start !important;
    flex-shrink: 0 !important;
}

/* Control slider step size */
.trustindex-widget [class*="ti-slider"] .ti-review-item,
.trustindex-widget .slick-slide,
.trustindex-widget .ti-slide {
    scroll-snap-align: start !important;
}

/* Force single item scroll on navigation click */
.trustindex-widget .ti-controls {
    --scroll-amount: 1 !important;
}

.logo-img {
    max-height: 50px;
    width: auto;
    filter: brightness(0);
}

@media (prefers-color-scheme: dark) {
    .logo-img {
        filter: brightness(0) invert(1);
    }
}

.hero-overlay {
    background: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 50%);
}

/* ========================================
   Privacy Policy / Prose Styling
   ======================================== */

.prose {
    color: #334155;
    max-width: 65ch;
    line-height: 1.75;
}

.prose h2 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.prose h3 {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.prose ul {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.prose ul li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.prose strong {
    color: #0f172a;
    font-weight: 600;
}

.prose a {
    color: #0ea5e9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: #0284c7;
}

/* Dark mode prose */
@media (prefers-color-scheme: dark) {

    .prose,
    .dark .prose {
        color: #cbd5e1;
    }

    .prose h2,
    .prose h3,
    .prose strong,
    .dark .prose h2,
    .dark .prose h3,
    .dark .prose strong {
        color: #f1f5f9;
    }
}

/* ========================================
   Cookie Banner Animation
   ======================================== */

#cookie-banner {
    transition: transform 0.5s ease-out;
}

/* ========================================
   Complianz Cookie Banner Styling
   ======================================== */

/* Container */
.cmplz-cookiebanner {
    font-family: 'Inter', sans-serif !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Logo */
.cmplz-cookiebanner .cmplz-logo {
    max-height: 40px !important;
}

/* Title */
.cmplz-cookiebanner .cmplz-title {
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 1.125rem !important;
}

/* Close icon */
.cmplz-cookiebanner .cmplz-close {
    color: #64748b !important;
    opacity: 0.7 !important;
    transition: all 0.2s ease !important;
}

.cmplz-cookiebanner .cmplz-close:hover {
    color: #0f172a !important;
    opacity: 1 !important;
}

/* Message */
.cmplz-cookiebanner .cmplz-message {
    color: #475569 !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}

/* All buttons base */
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 9999px !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

/* Accept button - Primary sky blue */
.cmplz-cookiebanner .cmplz-btn.cmplz-accept {
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover {
    background-color: #0284c7 !important;
    transform: scale(1.02) !important;
}

/* Deny button - Secondary outline */
.cmplz-cookiebanner .cmplz-btn.cmplz-deny {
    background-color: transparent !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-deny:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* View preferences button */
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences {
    background-color: transparent !important;
    color: #64748b !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences:hover {
    color: #0ea5e9 !important;
}

/* Save preferences button */
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences {
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences:hover {
    background-color: #0284c7 !important;
}

/* Document hyperlinks */
.cmplz-cookiebanner .cmplz-links a,
.cmplz-cookiebanner .cmplz-documents a {
    color: #0ea5e9 !important;
    text-decoration: none !important;
    font-size: 0.75rem !important;
    transition: color 0.2s ease !important;
}

.cmplz-cookiebanner .cmplz-links a:hover,
.cmplz-cookiebanner .cmplz-documents a:hover {
    color: #0284c7 !important;
    text-decoration: underline !important;
}

/* Categories */
.cmplz-cookiebanner .cmplz-categories {
    border-radius: 1rem !important;
    overflow: hidden !important;
}

.cmplz-cookiebanner .cmplz-category {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    margin-bottom: 0.5rem !important;
    padding: 1rem !important;
}

.cmplz-cookiebanner .cmplz-category-title {
    font-weight: 600 !important;
    color: #0f172a !important;
    font-size: 0.875rem !important;
}

.cmplz-cookiebanner .cmplz-category-description {
    color: #64748b !important;
    font-size: 0.8125rem !important;
}

/* Toggle switches */
.cmplz-cookiebanner .cmplz-toggle {
    background-color: #cbd5e1 !important;
}

.cmplz-cookiebanner .cmplz-toggle.cmplz-checked,
.cmplz-cookiebanner input:checked+.cmplz-toggle {
    background-color: #0ea5e9 !important;
}

/* Manage consent tab */
#cmplz-manage-consent,
.cmplz-manage-consent {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.75rem !important;
    color: #64748b !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#cmplz-manage-consent:hover,
.cmplz-manage-consent:hover {
    color: #0ea5e9 !important;
}

/* Soft cookie wall */
.cmplz-soft-cookiewall {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(4px) !important;
}

/* Blocked content placeholders */
.cmplz-blocked-content-container .cmplz-blocked-content-notice {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    color: #475569 !important;
    font-family: 'Inter', sans-serif !important;
}

button.cmplz-accept-service {
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

button.cmplz-accept-service:hover {
    background-color: #0284c7 !important;
}

/* ========================================
   Complianz - Dark Mode
   ======================================== */

@media (prefers-color-scheme: dark) {

    /* Container */
    .cmplz-cookiebanner {
        background: #1e293b !important;
        border-top-color: #334155 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
    }

    /* Title */
    .cmplz-cookiebanner .cmplz-title {
        color: #f1f5f9 !important;
    }

    /* Close icon */
    .cmplz-cookiebanner .cmplz-close {
        color: #94a3b8 !important;
    }

    .cmplz-cookiebanner .cmplz-close:hover {
        color: #f1f5f9 !important;
    }

    /* Message */
    .cmplz-cookiebanner .cmplz-message {
        color: #cbd5e1 !important;
    }

    /* Deny button */
    .cmplz-cookiebanner .cmplz-btn.cmplz-deny {
        border-color: #475569 !important;
        color: #94a3b8 !important;
    }

    .cmplz-cookiebanner .cmplz-btn.cmplz-deny:hover {
        background-color: #334155 !important;
        color: #f1f5f9 !important;
        border-color: #64748b !important;
    }

    /* View preferences button */
    .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences {
        color: #94a3b8 !important;
    }

    /* Categories */
    .cmplz-cookiebanner .cmplz-category {
        background: #0f172a !important;
        border-color: #334155 !important;
    }

    .cmplz-cookiebanner .cmplz-category-title {
        color: #f1f5f9 !important;
    }

    .cmplz-cookiebanner .cmplz-category-description {
        color: #94a3b8 !important;
    }

    /* Toggle switches */
    .cmplz-cookiebanner .cmplz-toggle {
        background-color: #475569 !important;
    }

    /* Manage consent tab */
    #cmplz-manage-consent,
    .cmplz-manage-consent {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #94a3b8 !important;
    }

    /* Blocked content placeholders */
    .cmplz-blocked-content-container .cmplz-blocked-content-notice {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #cbd5e1 !important;
    }
}

/* ========================================
   Pagination Styling
   ======================================== */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.nav-links a {
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.nav-links a:hover {
    background: var(--accent-color, #0ea5e9);
    color: #ffffff;
    border-color: var(--accent-color, #0ea5e9);
}

.nav-links .current {
    background: var(--accent-color, #0ea5e9);
    color: #ffffff;
    border: 1px solid var(--accent-color, #0ea5e9);
}

.nav-links .dots {
    background: transparent;
    border: none;
    color: #94a3b8;
}

.nav-links .prev,
.nav-links .next {
    padding: 0 1.25rem;
}

/* Dark mode pagination */
@media (prefers-color-scheme: dark) {
    .nav-links a {
        background: #1e293b;
        color: #cbd5e1;
        border-color: #334155;
    }

    .nav-links a:hover {
        background: var(--accent-color, #0ea5e9);
        color: #ffffff;
        border-color: var(--accent-color, #0ea5e9);
    }

    .nav-links .current {
        background: var(--accent-color, #0ea5e9);
        color: #ffffff;
        border-color: var(--accent-color, #0ea5e9);
    }

    .nav-links .dots {
        color: #64748b;
    }
}

/* ========================================
   Line Clamp Utility
   ======================================== */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
