/**
 * Authenticity Radar — Frontend Styles
 * Basiert auf verify-success-dummy.html Design.
 *
 * WICHTIG: Produktslider (.vzh-auth-section) liegen INNERHALB von #vzh-auth-radar,
 * duerfen aber KEINE Radar-Styles erben. Deshalb:
 *   - .vzh-auth-radar setzt NUR CSS Custom Properties (Variablen), KEINE font/color
 *   - font-family + color werden NUR auf [class*="vzh-auth-"] Elemente gesetzt
 *   - Produktkarten erben die normalen Theme-Styles (body, _weezelbau-custom, _weezelbau-woocommerce)
 *
 * @package Vierzeh\SerialCodes
 * @version 3.0.0
 */

/* Seiten-Hintergrund fuer die Validator-Seite */
body:has(.vzh-auth-radar) {
    background-color: #f8fafc !important;
}

/* Reset: WP/Theme img margins nur auf Radar-eigene Bilder */
.vzh-auth-radar [class*="vzh-auth-"] img {
    margin: 0;
}

/* Variables (nur Custom Properties, KEIN font-family/color auf Root!) */
.vzh-auth-radar {
    --wzl-green: #6a994e;
    --wzl-warning: #f59e0b;
    --wzl-danger: #ef4444;
    --wzl-text: #475569;
    --wzl-bg: #f8fafc;
    --wzl-border: #e2e8f0;
    --wzl-dark: #1e293b;
}

/* Radar-eigene Typografie: NUR auf die UI-Elemente, NICHT auf Slider/Karten.
   .vzh-auth-section und .vzh-auth-slick enthalten Produktkarten die Theme-Styles brauchen! */
.vzh-auth-radar .vzh-auth-search-hero,
.vzh-auth-radar .vzh-auth-search-card,
.vzh-auth-radar .vzh-auth-error-card,
.vzh-auth-radar .vzh-auth-info-col,
.vzh-auth-radar .vzh-auth-tag,
.vzh-auth-radar .vzh-auth-product-text,
.vzh-auth-radar .vzh-auth-data-pane,
.vzh-auth-radar .vzh-auth-scanner-wrap,
.vzh-auth-radar #vzh-auth-loader {
    font-family: 'Outfit', sans-serif;
    color: var(--wzl-text);
}
.vzh-auth-radar .vzh-auth-search-card a,
.vzh-auth-radar .vzh-auth-info-col a:not(.wcpr-star-rating a),
.vzh-auth-radar .vzh-auth-error-card a {
    text-decoration: none;
}

/* --- QUERY VIEW --- */
.vzh-auth-radar .vzh-auth-search-hero { max-width: 480px; margin: 80px auto; text-align: center; }
.vzh-auth-radar .vzh-auth-search-hero h2 { font-weight: 600; color: var(--wzl-dark); margin-bottom: 24px; }

.vzh-auth-radar .vzh-auth-search-card {
    background: #fff; border-radius: 24px; border: 1px solid var(--wzl-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); padding: 40px;
}

.vzh-auth-radar .vzh-auth-search-card .form-control,
.vzh-auth-radar .vzh-auth-search-card .form-select {
    border-radius: 12px; padding: 15px; border: 1px solid var(--wzl-border);
}

.vzh-auth-radar .vzh-auth-btn-scan {
    background: var(--wzl-dark) !important; color: #fff !important; width: 100%; padding: 16px;
    border-radius: 14px !important; font-weight: 600; border: none !important; cursor: pointer;
    font-size: 1rem; letter-spacing: 0.5px; transition: all 0.3s;
    display: block; text-align: center; line-height: 1.4;
    font-family: 'Outfit', sans-serif;
}
.vzh-auth-radar .vzh-auth-btn-scan:hover { background: var(--wzl-green) !important; transform: translateY(-2px); }

/* --- LOADING VIEW --- */
.vzh-auth-radar #vzh-auth-loader { text-align: center; padding: 100px 0; }

.vzh-auth-radar .vzh-auth-scanner {
    width: 120px; height: 120px; border-radius: 24px; border: 3px solid var(--wzl-green);
    margin: 0 auto 30px; position: relative; display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: rgba(106,153,78,0.05); box-shadow: 0 0 30px rgba(106,153,78,0.2);
}
.vzh-auth-radar .vzh-auth-scanner i { font-size: 2.5rem; color: var(--wzl-green); }
.vzh-auth-radar .vzh-auth-scan-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--wzl-green); animation: vzh-scan-move 1.5s infinite linear;
}
@keyframes vzh-scan-move { 0% { top: 0; } 100% { top: 100%; } }
.vzh-auth-radar #vzh-auth-loader h4 { font-weight: 600; color: var(--wzl-dark); letter-spacing: 1px; }

/* --- ERROR VIEW --- */
.vzh-auth-radar .vzh-auth-error-card {
    background: #fff; border-radius: 24px; border: 1px solid var(--wzl-danger);
    padding: 60px; max-width: 600px; margin: 60px auto; text-align: center;
}
.vzh-auth-radar .vzh-auth-error-card i { font-size: 4rem; color: var(--wzl-danger); display: block; margin-bottom: 20px; }
.vzh-auth-radar .vzh-auth-error-card h2 { font-weight: 600; color: var(--wzl-dark); }
.vzh-auth-radar .vzh-auth-error-card p { color: var(--wzl-text); margin-bottom: 24px; }
.vzh-auth-radar .vzh-auth-btn-back {
    background: var(--wzl-dark); color: #fff; padding: 14px 40px; border-radius: 50px;
    font-weight: 600; border: none; cursor: pointer; transition: 0.3s;
}
.vzh-auth-radar .vzh-auth-btn-back:hover { background: var(--wzl-green); }

/* --- SUCCESS VIEW — Hero Section --- */

/* Hero Banner */
.vzh-auth-radar .vzh-auth-hero { width: 100%; height: var(--hero-h, 300px); overflow: hidden; border-radius: 24px; }
.vzh-auth-radar .vzh-auth-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Info Column (links auf Desktop) */
.vzh-auth-radar .vzh-auth-info-col { padding-top: 40px; }
.vzh-auth-radar .vzh-auth-info-col h1 { font-size: 3rem; font-weight: 600; color: var(--wzl-dark); margin-bottom: 15px; font-family: 'Outfit', sans-serif; }

/* Auth Badge */
.vzh-auth-radar .vzh-auth-tag {
    display: inline-flex; border-left: 4px solid var(--wzl-green); background: #fff;
    padding: 12px 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-radius: 0 12px 12px 0; margin-bottom: 25px;
}
.vzh-auth-radar .vzh-auth-tag.warning { border-left-color: var(--wzl-warning); }
.vzh-auth-radar .vzh-auth-tag.blocked { border-left-color: var(--wzl-danger); }
.vzh-auth-radar .vzh-auth-status-label {
    font-family: 'Anonymous Pro', monospace; font-size: 0.65rem; font-weight: 400;
    color: #94a3b8; text-transform: uppercase; margin-bottom: 6px; display: block;
}
.vzh-auth-radar .vzh-auth-status-value { color: var(--wzl-dark); font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }

.vzh-auth-radar .vzh-auth-product-text { font-size: 1.1rem; line-height: 1.6; margin-bottom: 35px; max-width: 600px; }

/* Download Button */
.vzh-auth-radar .vzh-auth-btn-download {
    background: var(--wzl-dark); color: #fff !important; padding: 16px 35px; border-radius: 14px;
    font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; transition: 0.3s;
}
.vzh-auth-radar .vzh-auth-btn-download:visited { color: #fff !important; }
.vzh-auth-radar .vzh-auth-btn-download:hover { background: var(--wzl-green); color: #fff !important; transform: translateY(-3px); }

/* Kontakt Button (bei gesperrtem Code, anstelle Download) */
.vzh-auth-radar .vzh-auth-btn-contact {
    background: var(--wzl-danger); color: #fff !important; padding: 16px 35px; border-radius: 14px;
    font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; transition: 0.3s;
}
.vzh-auth-radar .vzh-auth-btn-contact:visited { color: #fff !important; }
.vzh-auth-radar .vzh-auth-btn-contact:hover { background: var(--wzl-dark); color: #fff !important; transform: translateY(-3px); }

/* Zum Produkt Button (sekundaer, neben Download) */
.vzh-auth-radar .vzh-auth-btn-product {
    background: transparent; color: var(--wzl-dark) !important; padding: 16px 35px; border-radius: 14px;
    font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; transition: 0.3s;
    border: 2px solid var(--wzl-border);
}
.vzh-auth-radar .vzh-auth-btn-product:visited { color: var(--wzl-dark) !important; }
.vzh-auth-radar .vzh-auth-btn-product:hover { border-color: var(--wzl-green); color: var(--wzl-green) !important; transform: translateY(-3px); }

/* Produktbild-Spalte: Mobile zentriert, Tablet rechts, Desktop normal im Grid */
.vzh-auth-radar .vzh-auth-product-col { margin-left: auto; margin-right: auto; }
@media (min-width: 992px) {
    .vzh-auth-radar .vzh-auth-product-col { margin-left: 0; margin-right: 0; }
}

/* Product Image — Overlap dynamisch: 50% der Hero-Hoehe nach oben */
.vzh-auth-radar .vzh-auth-hero-section {
    --hero-h: 300px;
}
.vzh-auth-radar .vzh-auth-product-img {
    margin-top: calc( var(--hero-h) * -0.25 );
    margin-left: auto; margin-right: auto;
    background: #fff; border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    z-index: 20; overflow: hidden; position: relative;
}
.vzh-auth-radar .vzh-auth-product-img img { width: 100%; height: 100%; object-fit: cover; }

/* Bildmodi — height per Modus (Liste-Einstellung) */
.vzh-auth-radar .vzh-auth-product-img.mode-portrait  { height: 480px; }
.vzh-auth-radar .vzh-auth-product-img.mode-landscape { height: 280px; }
.vzh-auth-radar .vzh-auth-product-img.mode-square    { height: 340px; }

/* --- SECTIONS (Slider) --- */
.vzh-auth-radar .vzh-auth-section { margin-top: 60px; }
.vzh-auth-radar .vzh-auth-section-label { font-size: 1.25rem; font-weight: 600; color: var(--wzl-dark); margin-bottom: 30px; text-align: center; font-family: 'Outfit', sans-serif; }

/* Slick-Dots Styling (Theme-konform) */
.vzh-auth-radar .slick-dots { padding: 0; list-style: none; text-align: center; margin-top: 16px; }
.vzh-auth-radar .slick-dots li { display: inline-block; margin: 0 3px; }
.vzh-auth-radar .slick-dots li button { width: 8px; height: 8px; border-radius: 50%; background: #e2e8f0; border: none; font-size: 0; cursor: pointer; padding: 0; transition: all 0.3s; }
.vzh-auth-radar .slick-dots li.slick-active button { width: 24px; border-radius: 4px; background: var(--wzl-green, #6a994e); }

/* Slider Arrows: global in wc-product-slider.php (wzl-slider-arrow) */

/* Product Cards: .col Reset fuer Slick-Kontext */
.vzh-auth-radar .vzh-auth-slick .col { flex: 0 0 auto; width: auto; max-width: none; padding: 0; }

/* Hover-Effekt auf den Karten-Wrapper (NICHT auf .card!) */
.vzh-auth-radar .module-card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.vzh-auth-radar .module-card-hover:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.15) !important; }

/* Data Table */
.vzh-auth-radar .vzh-auth-data-container {
    display: grid; grid-template-columns: 1fr 1fr; background: #fff;
    border: 1px solid var(--wzl-border); border-radius: 24px; overflow: hidden; margin: 60px 0;
}
.vzh-auth-radar .vzh-auth-data-pane { padding: 45px; }
.vzh-auth-radar .vzh-auth-data-pane.left { border-right: 1px solid var(--wzl-border); }
.vzh-auth-radar .vzh-auth-data-heading { font-size: 1.1rem; font-weight: 600; color: var(--wzl-dark); display: block; margin-bottom: 16px; }
.vzh-auth-radar .vzh-auth-row-item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.vzh-auth-radar .vzh-auth-row-item:last-child { border-bottom: none; }
.vzh-auth-radar .vzh-auth-row-label { color: #94a3b8; font-size: 0.9rem; font-weight: 600; flex-shrink: 0; }
.vzh-auth-radar .vzh-auth-row-val { font-weight: 600; color: var(--wzl-dark); text-align: right; }

/* Mobile: Spezifikationen untereinander statt nebeneinander */
@media (max-width: 767.98px) {
    .vzh-auth-radar .vzh-auth-row-item { flex-direction: column; gap: 2px; }
    .vzh-auth-radar .vzh-auth-row-val { text-align: left; }
}

/* --- RESPONSIVE --- */

/* Tablet + Mobile: Data Table einspaltig */
@media (max-width: 991.98px) {
    .vzh-auth-radar .vzh-auth-data-container { grid-template-columns: 1fr; }
    .vzh-auth-radar .vzh-auth-data-pane.left { border-right: none; border-bottom: 1px solid var(--wzl-border); }
}

/* NUR Tablet (768–991px): Bild oben-rechts, Info volle Breite darunter */
@media (min-width: 768px) and (max-width: 991.98px) {
    .vzh-auth-radar .vzh-auth-hero-section { --hero-h: 285px; }
    .vzh-auth-radar .vzh-auth-hero { height: 285px; }
    .vzh-auth-radar .vzh-auth-product-col { margin-left: auto; margin-right: 0; }
    .vzh-auth-radar .vzh-auth-product-img { margin-top: calc( var(--hero-h) * -0.85 ); margin-left: auto; margin-right: 2rem; }
    .vzh-auth-radar .vzh-auth-product-img.mode-portrait { height: 360px; }
    .vzh-auth-radar .vzh-auth-product-img.mode-landscape { height: 240px; }
    .vzh-auth-radar .vzh-auth-product-img.mode-square { height: 300px; }
    .vzh-auth-radar .vzh-auth-info-col { margin-top: calc( var(--hero-h) * -0.475 ); }
    .vzh-auth-radar .vzh-auth-info-col h1 { font-size: 2.5rem; }
}

/* NUR Mobile (<768px): Hero kleiner, Bild zentriert, kleinere Schrift */
@media (max-width: 767.98px) {
    .vzh-auth-radar .vzh-auth-hero-section { --hero-h: 250px; }
    .vzh-auth-radar .vzh-auth-hero { height: 250px; border-radius: 16px; }
    .vzh-auth-radar .vzh-auth-product-img { margin-top: calc( var(--hero-h) * -0.75 ); margin-left: auto; margin-right: auto; }
    .vzh-auth-radar .vzh-auth-product-img.mode-portrait { height: 400px; }
    .vzh-auth-radar .vzh-auth-product-img.mode-landscape { height: 220px; }
    .vzh-auth-radar .vzh-auth-product-img.mode-square { height: 280px; }
    .vzh-auth-radar .vzh-auth-info-col { padding-top: 20px; margin-top: 0; }
    .vzh-auth-radar .vzh-auth-info-col h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .vzh-auth-scan-line { animation: none; }
    .vzh-auth-btn-scan, .vzh-auth-btn-download, .vzh-auth-btn-back, .vzh-auth-radar .module-card-hover { transition: none; transform: none !important; }
}
