/*
Theme Name: HuisVerkenner
Theme URI: https://www.huisverkenner.nl
Author: HuisVerkenner Team
Author URI: https://www.huisverkenner.nl
Description: Een WordPress theme voor woninginformatie in Nederland met PDOK API, ScrapingBee en OpenAI integratie
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: huisverkenner
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Utility Classes */
.font-roboto {
    font-family: 'Inter', sans-serif;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #a3e635;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #84cc16;
}

/* Leaflet Map Fixes */
.leaflet-container {
    font-family: 'Inter', sans-serif;
    border-radius: 12px;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Smooth Transitions */
a, button {
    transition: all 0.3s ease;
}

/* Focus States */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.2);
}

/* Print Styles */
@media print {
    header, footer, nav, .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .bg-white {
        box-shadow: none !important;
    }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .md\:text-2xl {
        font-size: 1.25rem;
    }
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Voeg dark mode styles toe als gewenst */
}

/* Custom Button Styles */
button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Link Hover Effects */
a:hover {
    text-decoration: none;
}

/* Card Hover Effects */
.bg-white:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Grid Gap Adjustments */
.gap-8 {
    gap: 2rem;
}

/* Custom Border Radius */
.rounded-xl {
    border-radius: 0.75rem;
}

/* Shadow Utilities */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Z-Index Management */
.z-50 {
    z-index: 50;
}

.z-\[99999\] {
    z-index: 99999;
}

/* Flex Utilities */
.flex-1 {
    flex: 1 1 0%;
}

/* Text Overflow */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Custom Colors - Lime Theme */
:root {
    --color-lime-50: #f7fee7;
    --color-lime-100: #ecfccb;
    --color-lime-200: #d9f99d;
    --color-lime-300: #bef264;
    --color-lime-400: #a3e635;
    --color-lime-500: #84cc16;
    --color-lime-600: #65a30d;
    --color-lime-700: #4d7c0f;
    --color-lime-800: #3f6212;
    --color-lime-900: #365314;
}

/* WordPress Admin Bar Fix */
body.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}