/*
Theme Name: Longboardcenter
Theme URI: https://longboardcenter.eu
Description: Ultra-lichtgewicht custom thema voor Longboardcenter.eu - Longboards, skateboards & accessoires. Gebouwd voor maximale snelheid.
Author: Hugo Verburg
Author URI: https://longboardcenter.eu
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: longboardcenter
Tags: woocommerce, e-commerce, custom, lightweight, fast
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES - Design Tokens
   ========================================================================== */

:root {
    /* Brand Colors - Longboardcenter Coral Red */
    --lbc-primary: #FF5A4D;
    --lbc-primary-dark: #E54A3F;
    --lbc-primary-light: #FFF0EE;
    --lbc-primary-glow: rgba(255, 90, 77, 0.25);

    /* Neutrals */
    --lbc-black: #111;
    --lbc-gray-900: #1a1a1a;
    --lbc-gray-800: #333;
    --lbc-gray-700: #444;
    --lbc-gray-600: #555;
    --lbc-gray-500: #777;
    --lbc-gray-400: #999;
    --lbc-gray-300: #CCC;
    --lbc-gray-200: #E5E5E5;
    --lbc-gray-100: #F5F5F5;
    --lbc-white: #FFF;

    /* Semantic Colors */
    --lbc-success: #22C55E;
    --lbc-success-light: #DCFCE7;
    --lbc-error: #EF4444;
    --lbc-error-light: #FEE2E2;
    --lbc-warning: #F59E0B;
    --lbc-warning-light: #FEF3C7;
    --lbc-info: #3B82F6;
    --lbc-info-light: #DBEAFE;

    /* Backgrounds */
    --lbc-cream: #FFFAF5;
    --lbc-cream-dark: #FDF7F3;

    /* Typography */
    --lbc-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --lbc-font-heading: 'Bebas Neue', Impact, sans-serif;

    --lbc-text-xs: 0.75rem;
    /* 12px */
    --lbc-text-sm: 0.875rem;
    /* 14px */
    --lbc-text-base: 1rem;
    /* 16px */
    --lbc-text-lg: 1.125rem;
    /* 18px */
    --lbc-text-xl: 1.25rem;
    /* 20px */
    --lbc-text-2xl: 1.5rem;
    /* 24px */
    --lbc-text-3xl: 1.875rem;
    /* 30px */
    --lbc-text-4xl: 2.25rem;
    /* 36px */
    --lbc-text-5xl: 3rem;
    /* 48px */

    /* Spacing */
    --lbc-space-1: 0.25rem;
    /* 4px */
    --lbc-space-2: 0.5rem;
    /* 8px */
    --lbc-space-3: 0.75rem;
    /* 12px */
    --lbc-space-4: 1rem;
    /* 16px */
    --lbc-space-5: 1.25rem;
    /* 20px */
    --lbc-space-6: 1.5rem;
    /* 24px */
    --lbc-space-8: 2rem;
    /* 32px */
    --lbc-space-10: 2.5rem;
    /* 40px */
    --lbc-space-12: 3rem;
    /* 48px */
    --lbc-space-16: 4rem;
    /* 64px */
    --lbc-space-20: 5rem;
    /* 80px */

    /* Border Radius */
    --lbc-radius-sm: 6px;
    --lbc-radius-md: 10px;
    --lbc-radius-lg: 16px;
    --lbc-radius-xl: 24px;
    --lbc-radius-full: 9999px;

    /* Shadows */
    --lbc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --lbc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --lbc-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --lbc-shadow-primary: 0 4px 14px rgba(255, 90, 77, 0.3);

    /* Transitions */
    --lbc-transition-fast: 150ms ease;
    --lbc-transition-base: 200ms ease;
    --lbc-transition-slow: 300ms ease;

    /* Layout */
    --lbc-container-max: 1280px;
    --lbc-container-narrow: 900px;
    --lbc-header-height: 70px;
    
    /* 
     * BREAKPOINTS - Single Source of Truth
     * 
     * Mobile:  0 - 767px
     * Tablet:  768px - 1024px  
     * Desktop: 1025px+
     * 
     * Usage in media queries:
     * - Mobile:  @media (max-width: 767px)
     * - Tablet:  @media (min-width: 768px) and (max-width: 1024px)
     * - Desktop: @media (min-width: 1025px)
     * - Not Mobile (tablet+desktop): @media (min-width: 768px)
     * - Not Desktop (mobile+tablet): @media (max-width: 1024px)
     */
}

/* ==========================================================================
   CSS RESET - Minimal & Modern
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--lbc-font-body);
    font-size: var(--lbc-text-base);
    line-height: 1.6;
    color: var(--lbc-gray-800);
    background: var(--lbc-white);
}

img,
picture,
video,
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* SVG icons - ensure proper sizing */
svg {
    max-width: 100%;
    height: auto;
}

/* SVG icons in buttons and inline elements need explicit sizing */
button svg,
a svg,
span svg,
label svg,
.filter-checkbox__box svg,
.product-card__btn svg,
.product-card__quickview svg,
.product-card__shipping svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

/* Limit standalone SVGs that might come from plugins */
.site-content > svg,
.widget svg,
section > svg {
    max-width: 64px;
    max-height: 64px;
}

input,
button,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--lbc-black);
}

h1 {
    font-size: var(--lbc-text-4xl);
}

h2 {
    font-size: var(--lbc-text-3xl);
}

h3 {
    font-size: var(--lbc-text-2xl);
}

h4 {
    font-size: var(--lbc-text-xl);
}

h5 {
    font-size: var(--lbc-text-lg);
}

h6 {
    font-size: var(--lbc-text-base);
}

.heading-display {
    font-family: var(--lbc-font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: var(--lbc-space-4);
}

p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   PAGE CONTENT & GUTENBERG BLOCKS
   ========================================================================== */

/* Page header styling */
.page-header {
    margin-bottom: var(--lbc-space-8);
}

.page-header.text-center {
    text-align: center;
}

.page-title {
    font-family: var(--lbc-font-heading);
    font-size: var(--lbc-text-4xl);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--lbc-space-4);
}

/* Entry content - main page content area */
.entry-content {
    font-size: var(--lbc-text-base);
    line-height: 1.7;
}

.entry-content h2 {
    font-size: var(--lbc-text-2xl);
    margin-top: var(--lbc-space-8);
    margin-bottom: var(--lbc-space-4);
    padding-bottom: var(--lbc-space-2);
    border-bottom: 2px solid var(--lbc-primary);
}

.entry-content h3 {
    font-size: var(--lbc-text-xl);
    margin-top: var(--lbc-space-6);
    margin-bottom: var(--lbc-space-3);
}

.entry-content h4 {
    font-size: var(--lbc-text-lg);
    margin-top: var(--lbc-space-5);
    margin-bottom: var(--lbc-space-2);
}

.entry-content p {
    margin-bottom: var(--lbc-space-4);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--lbc-space-4);
    padding-left: var(--lbc-space-6);
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: var(--lbc-space-2);
}

.entry-content a {
    color: var(--lbc-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: var(--lbc-primary-dark);
}

.entry-content hr {
    border: none;
    border-top: 1px solid var(--lbc-gray-200);
    margin: var(--lbc-space-8) 0;
}

.entry-content strong {
    font-weight: 600;
    color: var(--lbc-black);
}

.entry-content blockquote {
    border-left: 4px solid var(--lbc-primary);
    padding-left: var(--lbc-space-4);
    margin: var(--lbc-space-6) 0;
    font-style: italic;
    color: var(--lbc-gray-600);
}

/* Gutenberg blocks */
.wp-block-separator {
    border: none;
    border-top: 1px solid var(--lbc-gray-200);
    margin: var(--lbc-space-8) 0;
}

.wp-block-separator.is-style-wide {
    border-top-width: 2px;
}

.wp-block-separator.is-style-dots {
    border: none;
    text-align: center;
}

.wp-block-separator.is-style-dots::before {
    content: '···';
    font-size: var(--lbc-text-2xl);
    color: var(--lbc-gray-400);
    letter-spacing: 1em;
}

.wp-block-image {
    margin: var(--lbc-space-6) 0;
}

.wp-block-image img {
    border-radius: var(--lbc-radius-lg);
}

.wp-block-image figcaption {
    font-size: var(--lbc-text-sm);
    color: var(--lbc-gray-500);
    text-align: center;
    margin-top: var(--lbc-space-2);
}

.wp-block-gallery {
    margin: var(--lbc-space-6) 0;
}

.wp-block-columns {
    margin: var(--lbc-space-6) 0;
}

.wp-block-group {
    margin: var(--lbc-space-6) 0;
}

.wp-block-group.has-background {
    padding: var(--lbc-space-6);
    border-radius: var(--lbc-radius-lg);
}

/* FAQ accordion styling */
.entry-content details {
    background: var(--lbc-gray-100);
    border-radius: var(--lbc-radius-md);
    margin-bottom: var(--lbc-space-3);
    overflow: hidden;
}

.entry-content details summary {
    padding: var(--lbc-space-4);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--lbc-space-2);
}

.entry-content details summary:hover {
    background: var(--lbc-gray-200);
}

.entry-content details[open] summary {
    border-bottom: 1px solid var(--lbc-gray-200);
}

.entry-content details > *:not(summary) {
    padding: var(--lbc-space-4);
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--lbc-space-6) 0;
}

.entry-content th,
.entry-content td {
    padding: var(--lbc-space-3) var(--lbc-space-4);
    border: 1px solid var(--lbc-gray-200);
    text-align: left;
}

.entry-content th {
    background: var(--lbc-gray-100);
    font-weight: 600;
}

.entry-content tr:nth-child(even) {
    background: var(--lbc-gray-100);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--lbc-container-max);
    margin: 0 auto;
    padding: 0 var(--lbc-space-4);
}

/* LBC Wrap - Global container for footer and other sections */
.lbc-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .lbc-wrap {
        padding: 0 16px;
    }
}

/* ==========================================================================
   LBC GLOBAL BUTTONS - Used across all pages (footer, shop, shortcodes)
   ========================================================================== */

.lbc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.lbc-btn svg {
    width: 16px;
    height: 16px;
    transition: transform .3s ease;
}

.lbc-btn-primary {
    background: var(--lbc-primary);
    color: var(--lbc-white);
    box-shadow: 0 4px 12px rgba(255, 90, 77, .25);
}

.lbc-btn-primary:hover {
    background: var(--lbc-primary-dark);
    transform: translateY(-2px);
    color: var(--lbc-white);
}

.lbc-btn-primary:hover svg {
    transform: translateX(3px);
}

.lbc-btn-white {
    background: #fff;
    color: #111;
    border: 2px solid #fff;
}

.lbc-btn-white:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.lbc-btn-outline {
    background: transparent;
    color: var(--lbc-black);
    border: 2px solid var(--lbc-gray-300);
}

.lbc-btn-outline:hover {
    border-color: var(--lbc-primary);
    color: var(--lbc-primary);
}

.lbc-btn-outline-light {
    background: transparent;
    color: var(--lbc-white);
    border: 2px solid rgba(255,255,255,0.4);
}

.lbc-btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--lbc-white);
    color: var(--lbc-white);
}

.lbc-btn-whatsapp {
    background: #25D366;
    color: var(--lbc-white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.lbc-btn-whatsapp:hover {
    background: #20BD5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: var(--lbc-white);
}

.lbc-btn-sm {
    padding: 11px 18px;
    font-size: 13px;
}

.lbc-btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

/* Ensure cart/checkout pages use full container width */
.woocommerce-cart .container,
.woocommerce-checkout .container {
    max-width: var(--lbc-container-max);
}

.container-narrow {
    max-width: var(--lbc-container-narrow);
}

.section {
    padding: var(--lbc-space-16) 0;
}

.section-sm {
    padding: var(--lbc-space-10) 0;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-2 {
    gap: var(--lbc-space-2);
}

.gap-3 {
    gap: var(--lbc-space-3);
}

.gap-4 {
    gap: var(--lbc-space-4);
}

.gap-6 {
    gap: var(--lbc-space-6);
}

.gap-8 {
    gap: var(--lbc-space-8);
}

/* Grid */
.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--lbc-space-2);
    padding: var(--lbc-space-3) var(--lbc-space-6);
    font-size: var(--lbc-text-sm);
    font-weight: 600;
    border-radius: var(--lbc-radius-md);
    transition: all var(--lbc-transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--lbc-primary);
    color: var(--lbc-white);
    box-shadow: var(--lbc-shadow-primary);
}

.btn-primary:hover {
    background: var(--lbc-primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--lbc-white);
    color: var(--lbc-black);
    border: 2px solid var(--lbc-gray-200);
}

.btn-secondary:hover {
    border-color: var(--lbc-primary);
    color: var(--lbc-primary);
}

.btn-lg {
    padding: var(--lbc-space-4) var(--lbc-space-8);
    font-size: var(--lbc-text-base);
}

.btn-sm {
    padding: var(--lbc-space-2) var(--lbc-space-4);
    font-size: var(--lbc-text-xs);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
    margin-bottom: var(--lbc-space-4);
}

.form-label {
    display: block;
    font-size: var(--lbc-text-sm);
    font-weight: 500;
    color: var(--lbc-gray-700);
    margin-bottom: var(--lbc-space-2);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--lbc-space-3) var(--lbc-space-4);
    font-size: var(--lbc-text-base);
    border: 2px solid var(--lbc-gray-200);
    border-radius: var(--lbc-radius-md);
    background: var(--lbc-white);
    transition: border-color var(--lbc-transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--lbc-primary);
    box-shadow: 0 0 0 3px var(--lbc-primary-glow);
}

.form-input::placeholder {
    color: var(--lbc-gray-400);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background: var(--lbc-white);
    border-radius: var(--lbc-radius-lg);
    box-shadow: var(--lbc-shadow-sm);
    overflow: hidden;
    transition: all var(--lbc-transition-base);
}

.card:hover {
    box-shadow: var(--lbc-shadow-lg);
    transform: translateY(-4px);
}

.card-body {
    padding: var(--lbc-space-4);
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--lbc-space-1) var(--lbc-space-3);
    font-size: var(--lbc-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--lbc-radius-sm);
}

.badge-primary {
    background: var(--lbc-primary);
    color: var(--lbc-white);
}

.badge-green {
    background: var(--lbc-success);
    color: var(--lbc-white);
}

.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Text */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--lbc-primary);
}

.text-muted {
    color: var(--lbc-gray-500);
}

.text-sm {
    font-size: var(--lbc-text-sm);
}

.text-lg {
    font-size: var(--lbc-text-lg);
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

/* Spacing */
.mt-0 {
    margin-top: 0;
}

.mt-4 {
    margin-top: var(--lbc-space-4);
}

.mt-6 {
    margin-top: var(--lbc-space-6);
}

.mt-8 {
    margin-top: var(--lbc-space-8);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: var(--lbc-space-4);
}

.mb-6 {
    margin-bottom: var(--lbc-space-6);
}

.mb-8 {
    margin-bottom: var(--lbc-space-8);
}

/* Display */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* ==========================================================================
   RESPONSIVE VISIBILITY UTILITIES
   
   Simple, clear device-specific visibility classes.
   Breakpoints: Mobile (0-767px) | Tablet (768-1024px) | Desktop (1025px+)
   
   !important is BEWUST: utility classes moeten altijd winnen over component styles.
   ========================================================================== */

/* DESKTOP ONLY - visible only on 1025px+ */
.desktop-only {
    display: none !important;
}
@media (min-width: 1025px) {
    .desktop-only {
        display: block !important;
    }
    .desktop-only.flex,
    .desktop-only[class*="flex"] {
        display: flex !important;
    }
}

/* MOBILE ONLY - visible only on 0-767px */
.mobile-only {
    display: none !important;
}
@media (max-width: 767px) {
    .mobile-only {
        display: block !important;
    }
    .mobile-only.flex,
    .mobile-only[class*="flex"] {
        display: flex !important;
    }
}

/* TABLET ONLY - visible only on 768-1024px */
.tablet-only {
    display: none !important;
}
@media (min-width: 768px) and (max-width: 1024px) {
    .tablet-only {
        display: block !important;
    }
    .tablet-only.flex,
    .tablet-only[class*="flex"] {
        display: flex !important;
    }
}

/* NOT MOBILE - visible on tablet AND desktop (768px+) */
@media (max-width: 767px) {
    .not-mobile {
        display: none !important;
    }
}

/* NOT DESKTOP - visible on mobile AND tablet (0-1024px) */
@media (min-width: 1025px) {
    .not-desktop {
        display: none !important;
    }
}

/* Legacy aliases for backwards compatibility */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}
@media (min-width: 768px) {
    .show-mobile {
        display: none !important;
    }
}

/* ==========================================================================
   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: 0;
}

*:focus-visible {
    outline: 2px solid var(--lbc-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   TRANSLATEPRESS LANGUAGE SWITCHER - CRO FIX
   Move floating widget out of the way of content/CTAs
   ========================================================================== */

.trp-floater-ls,
.trp-language-switcher-container {
    bottom: 12px !important;
    left: auto !important;
    right: 12px !important;
    z-index: 999 !important;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.trp-floater-ls:hover,
.trp-language-switcher-container:hover {
    opacity: 1;
}

/* On mobile, make it smaller and even less intrusive */
@media (max-width: 767px) {
    .trp-floater-ls,
    .trp-language-switcher-container {
        bottom: 8px !important;
        right: 8px !important;
        transform: scale(0.85);
        transform-origin: bottom right;
    }
}

/* ==========================================================================
   REDUCED MOTION - ACCESSIBILITY
   
   !important is hier BEWUST en NOODZAKELIJK:
   - WCAG 2.1 Success Criterion 2.3.3 (Animation from Interactions)
   - Gebruikers met vestibulaire stoornissen kunnen misselijk worden van animaties
   - Deze regels MOETEN alle andere animaties overriden voor toegankelijkheid
   - Verwijder deze !important NOOIT - het is een accessibility vereiste
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
