/* ============================================= */
/* WCC Core Styles - Shared Base Styles          */
/* Version: 1.0 - Optimized December 2025        */
/* Load: All pages with WCC content              */
/* ============================================= */

/* ============================================= */
/* Remove Body Padding                           */
/* ============================================= */
body {
    padding-top: 0 !important;
}

/* ============================================= */
/* Hide WordPress Skip Link                      */
/* ============================================= */
#wp-skip-link,
.skip-link.screen-reader-text,
a.skip-link[href="#wp--skip-link--target"] {
    display: none !important;
    visibility: hidden !important;
}

/* ============================================= */
/* Base WooCommerce Image Overrides              */
/* ============================================= */

/* Force square images (no rounded corners) */
.wc-block-components-product-image,
.wc-block-grid__product-image,
.wp-block-woocommerce-product-image {
    border-radius: 0 !important;
}

.wc-block-components-product-image *,
.wc-block-grid__product-image *,
.wp-block-woocommerce-product-image * {
    border-radius: 0 !important;
}

/* ============================================= */
/* WCC Product Card Base Styles                  */
/* ============================================= */

.wcc-spec-block,
.wcc-spec-limited {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 10px;
    box-sizing: border-box;
}

.wcc-spec-universal {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Product cards basic layout */
.wc-block-product,
.wc-block-product-post {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: auto;
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
    align-items: center;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wc-block-product *,
.wc-block-product-post * {
    max-width: 100%;
    box-sizing: border-box;
}

/* ============================================= */
/* Price Styling                                 */
/* ============================================= */

.wcc-price {
    font-size: 1.75em !important;
    font-weight: bold !important;
    color: #333 !important;
}

.has-text-align-left .wcc-price {
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
}

.price .wcc-price {
    font-size: 1.8em !important;
}

.wc-block-components-product-price .wcc-price,
.woocommerce-loop-product__price .wcc-price {
    font-size: 1.4em !important;
}

/* ============================================= */
/* WCC Spec Badge Styles                         */
/* ============================================= */

.wcc-spec-block {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.wcc-spec-block .car-spec {
    background: #f1f3f5;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wcc-spec-block .car-spec i {
    color: #007cba;
    min-width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* ============================================= */
/* GDPR Consent Checkbox Styles                  */
/* ============================================= */

.gdpr-consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.gdpr-consent-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.gdpr-consent-wrapper label {
    font-size: 11px;
    line-height: 1.4;
    color: #555;
    cursor: pointer;
}

.gdpr-consent-wrapper a {
    color: #0073aa;
    text-decoration: underline;
}

.gdpr-consent-wrapper a:hover {
    color: #005177;
}

/* ============================================= */
/* REUSABLE KENTEKEN (LICENSE PLATE) COMPONENT   */
/* Use these classes everywhere kenteken appears */
/* ============================================= */

/* Kenteken Font - Use system fonts that resemble license plate typography */
/* The Dutch license plate uses a specific font, but we use web-safe alternatives */
/* For production, consider using Google Fonts "Oswald" or "Anton" as alternatives */

/* Kenteken Section Container - centers the plate */
.wcc-kenteken-section {
    text-align: center;
    padding: 24px 0;
    margin: 24px 0;
}

/* Centered variant for forms */
.wcc-kenteken-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto 20px auto;
    text-align: center;
}

.wcc-kenteken-centered label {
    text-align: center;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* The Numberplate Frame - Yellow Dutch plate background */
.wcc-numberplate-frame {
    display: flex;
    width: 200px;
    height: 50px;
    box-sizing: border-box;
    background-image: url('https://demirkolautos.nl/wp-content/plugins/woo-cars-catalog/assets/images/wcc-plate-background.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    padding: 8px 10px 8px 40px;
    align-items: center;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    margin: 0 auto;
    overflow: hidden;
}

/* Centered modifier */
.wcc-numberplate-frame.wcc-centered,
.wcc-kenteken-centered .wcc-numberplate-frame {
    margin: 0 auto;
}

/* The Kenteken Text Style - for display (non-input) */
.wcc-kenteken-text {
    flex-grow: 1;
    font-family: 'Kenteken', 'Arial Black', 'Helvetica Neue', sans-serif;
    font-weight: bold;
    font-size: 1.4em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
    text-align: center;
    line-height: 1;
}

/* The Kenteken Input Style - for forms */
.wcc-kenteken-input,
.wcc-numberplate-input,
#wcc_numberplate_input {
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    appearance: none;
    -webkit-appearance: none;
    color-scheme: light;
    outline: none !important;
    width: 100% !important;
    height: 100% !important;
    flex-grow: 1;
    font-family: 'Kenteken', 'Arial Black', 'Helvetica Neue', sans-serif !important;
    font-weight: bold !important;
    font-size: 1.4em !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
    line-height: 1 !important;
}

/* Kenteken Input Placeholder */
.wcc-kenteken-input::placeholder,
.wcc-numberplate-input::placeholder,
#wcc_numberplate_input::placeholder {
    font-family: 'Kenteken', 'Arial Black', 'Helvetica Neue', sans-serif !important;
    font-weight: bold !important;
    font-size: 1em !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #666 !important;
    opacity: 0.5 !important;
}

/* Webkit placeholder */
.wcc-kenteken-input::-webkit-input-placeholder,
.wcc-numberplate-input::-webkit-input-placeholder,
#wcc_numberplate_input::-webkit-input-placeholder {
    font-family: 'Kenteken', 'Arial Black', 'Helvetica Neue', sans-serif !important;
    font-weight: bold !important;
    font-size: 1em !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #666 !important;
    opacity: 0.5 !important;
}

/* Firefox placeholder */
.wcc-kenteken-input::-moz-placeholder,
.wcc-numberplate-input::-moz-placeholder,
#wcc_numberplate_input::-moz-placeholder {
    font-family: 'Kenteken', 'Arial Black', 'Helvetica Neue', sans-serif !important;
    font-weight: bold !important;
    font-size: 1em !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #666 !important;
    opacity: 0.5 !important;
}

/* Remove autofill background for inputs */
.wcc-kenteken-input:-webkit-autofill,
.wcc-kenteken-input:-webkit-autofill:hover,
.wcc-kenteken-input:-webkit-autofill:focus,
.wcc-kenteken-input:-webkit-autofill:active,
.wcc-numberplate-input:-webkit-autofill,
.wcc-numberplate-input:-webkit-autofill:hover,
.wcc-numberplate-input:-webkit-autofill:focus,
.wcc-numberplate-input:-webkit-autofill:active,
#wcc_numberplate_input:-webkit-autofill,
#wcc_numberplate_input:-webkit-autofill:hover,
#wcc_numberplate_input:-webkit-autofill:focus,
#wcc_numberplate_input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: #000;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px transparent !important;
    background-color: transparent !important;
}

/* Focus state */
.wcc-kenteken-input:focus,
.wcc-numberplate-input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Plain frame variant (no yellow background) */
.wcc-numberplate-frame.wcc-plain-frame {
    background-image: none;
    background: #fff;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    padding: 10px 12px;
    height: auto;
    width: 100%;
    max-width: 240px;
    box-shadow: none;
}

.wcc-plain-frame .wcc-kenteken-input,
.wcc-plain-frame .wcc-numberplate-input {
    font-family: inherit;
    font-size: 1em;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* Small kenteken variant */
.wcc-numberplate-frame.wcc-small {
    width: 160px;
    height: 40px;
    padding: 6px 8px 6px 32px;
}

.wcc-small .wcc-kenteken-text,
.wcc-small .wcc-kenteken-input {
    font-size: 1.1em;
    letter-spacing: 1px;
}

/* Large kenteken variant */
.wcc-numberplate-frame.wcc-large {
    width: 240px;
    height: 60px;
    padding: 10px 12px 10px 48px;
}

.wcc-large .wcc-kenteken-text,
.wcc-large .wcc-kenteken-input {
    font-size: 1.6em;
    letter-spacing: 2px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .wcc-numberplate-frame {
        width: 180px;
        height: 45px;
        padding: 6px 8px 6px 35px;
    }
    
    .wcc-kenteken-text,
    .wcc-kenteken-input,
    .wcc-numberplate-input {
        font-size: 1.2em;
        letter-spacing: 1px;
    }
}

/* ============================================= */
/* Universal Form Field Error Styling            */
/* Applies to all WCC forms                      */
/* ============================================= */

/* Error message text below fields */
.wcc-field-error {
    display: block;
    color: #e53e3e;
    font-size: 12px;
    margin-top: 6px;
    text-align: center;
    min-height: 18px;
}

/* Error state for input/select/textarea */
.wcc-input-error,
.wcc-input-error:focus,
input.wcc-input-error,
input.wcc-input-error:focus,
select.wcc-input-error,
select.wcc-input-error:focus,
textarea.wcc-input-error,
textarea.wcc-input-error:focus {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
}

/* Valid state for input/select/textarea */
.wcc-input-valid,
.wcc-input-valid:focus,
input.wcc-input-valid,
input.wcc-input-valid:focus,
select.wcc-input-valid,
select.wcc-input-valid:focus,
textarea.wcc-input-valid,
textarea.wcc-input-valid:focus {
    border-color: #38a169 !important;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.15) !important;
}

/* ============================================= */
/* Submission Dashboard Image Gallery            */
/* ============================================= */

.wcc-submission-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 8px;
    width: 100%;
}

.wcc-submission-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #f5f5f5;
    flex-shrink: 0;
}

.wcc-submission-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wcc-submission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wcc-submission-field {
    margin-bottom: 16px;
    padding: 12px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 2px;
}

.wcc-submission-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

/* ============================================= */
/* Quick Car Specs Grid                         */
/* ============================================= */

.wcc-submission-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.wcc-spec-item {
    background: white;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.wcc-spec-item strong {
    display: block;
    color: #0073aa;
    font-size: 13px;
    font-weight: 600;
}

.wcc-spec-item small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 3px;
}

/* ============================================= */
/* Detail Modal Tabs                             */
/* ============================================= */

.wcc-detail-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-weight: 600;
}

.wcc-detail-tab:hover {
    color: #0073aa;
    background: white;
}

.wcc-detail-tab.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
    background: white;
}

.wcc-detail-tab-content {
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================= */
/* END OF FILE                                   */
/* ============================================= */
