/**
 * VDI SEO GEO - Frontend Dates & E-E-A-T Bar Styles (Bento Border & Cross Grid)
 *
 * @package    VDI_SEO_GEO
 * @subpackage Frontend
 */

/* ------------------------------------------------------------------------
   1. BENTO SPACER-BOX (Zwischenkasten mit Rahmen & Kreuzen)
   ------------------------------------------------------------------------ */
.vdi-seo-dates-spacer {
    position: relative;
    width: 100%;
    height: 62px;
    margin: 0;
    padding: 0;
    background: transparent;
    border-top: none !important;
    border-bottom: 1px solid #E2E8F0;
    border-left: 1px solid #E2E8F0;
    border-right: 1px solid #E2E8F0;
    box-sizing: border-box;
}



/* ------------------------------------------------------------------------
   2. BENTO AUTOREN- & DATUMSZEILE
   ------------------------------------------------------------------------ */
.vdi-seo-dates-bar {
    position: relative;
    margin: 0;
    padding: 0;
    background: transparent;
    border-top: none;
    border-bottom: 1px solid #E2E8F0;
    border-left: 1px solid #E2E8F0;
    border-right: 1px solid #E2E8F0;
    border-radius: 0;
    font-size: 11px;
    color: #64748b;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    line-height: 20px;
    box-sizing: border-box;
    width: 100%;
    min-height: 62px;
}

/* ------------------------------------------------------------------------
   3. BENTO-ZELLEN (3 Spalten mit vertikalen Trennlinien & Hover-Effekt)
   ------------------------------------------------------------------------ */
.vdi-seo-dates-bar .vdi-date-published,
.vdi-seo-dates-bar .vdi-date-modified,
.vdi-seo-dates-bar .vdi-author {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 21px 16px;
    margin: 0;
    box-sizing: border-box;
    white-space: nowrap;
    transition: background-color 0.25s ease;
}

.vdi-seo-dates-bar .vdi-date-published {
    flex: 0 0 auto;
    border-right: 1px solid #E2E8F0;
}

.vdi-seo-dates-bar .vdi-date-modified {
    flex: 0 0 auto;
    justify-content: center;
    border-right: 1px solid #E2E8F0;
}

.vdi-seo-dates-bar .vdi-author {
    flex: 1 1 auto;
    justify-content: flex-end;
}

/* Fallback bei nur 2 Zellen (ohne Änderungsdatum) */
.vdi-seo-dates-bar:not(.has-modified) .vdi-date-published {
    flex: 1 1 40%;
}
.vdi-seo-dates-bar:not(.has-modified) .vdi-author {
    flex: 1 1 60%;
}

/* Subtiler Bento-Hover pro Zelle (.fi-hover-bg Look) */
.vdi-seo-dates-bar .vdi-date-published:hover,
.vdi-seo-dates-bar .vdi-date-modified:hover,
.vdi-seo-dates-bar .vdi-author:hover {
    background-color: #F8FAFC;
}

/* ------------------------------------------------------------------------
   4. SVG-KNOTENPUNKTE AN DER DATUMSZEILE (ab 960px)
   ------------------------------------------------------------------------ */
@media (min-width: 960px) {
    /* Äußere Ecken UNTEN: L-Stücke als Abschluss (links └ und rechts ┘) */
    .vdi-seo-dates-bar::before {
        content: "";
        position: absolute;
        left: -6px;
        bottom: -6px;
        width: 12px;
        height: 12px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M6 0v6M6 6h6' stroke='%23CBD5E1' stroke-width='1'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center center;
        z-index: 40;
        pointer-events: none;
        transition: background-image 0.25s ease;
    }

    .vdi-seo-dates-bar::after {
        content: "";
        position: absolute;
        right: -6px;
        bottom: -6px;
        width: 12px;
        height: 12px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M6 0v6M0 6h6' stroke='%23CBD5E1' stroke-width='1'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center center;
        z-index: 40;
        pointer-events: none;
        transition: background-image 0.25s ease;
    }

    /* Äußere Ecken MITTE (Übergang Spacer zu Datumszeile): T-Stücke links (├) und rechts (┤) analog zu .fi-border-grid-center */
    .vdi-seo-dates-bar .vdi-date-published::before {
        content: "";
        position: absolute;
        left: -6px;
        top: -6px;
        width: 12px;
        height: 12px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M6 0v12M6 6h6' stroke='%23CBD5E1' stroke-width='1'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center center;
        z-index: 40;
        pointer-events: none;
        transition: background-image 0.25s ease;
    }

    .vdi-seo-dates-bar .vdi-author::before {
        content: "";
        position: absolute;
        right: -6px;
        top: -6px;
        width: 12px;
        height: 12px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M6 0v12M0 6h6' stroke='%23CBD5E1' stroke-width='1'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center center;
        z-index: 40;
        pointer-events: none;
        transition: background-image 0.25s ease;
    }

    /* Innere Spaltentrenner: T-Stück (┴) am unteren Ende */
    .vdi-seo-dates-bar .vdi-date-published::after,
    .vdi-seo-dates-bar .vdi-date-modified::after {
        content: "";
        position: absolute;
        right: -6px;
        bottom: -6px;
        width: 12px;
        height: 12px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M0 6h12M6 0v6' stroke='%23CBD5E1' stroke-width='1'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center center;
        z-index: 40;
        pointer-events: none;
        transition: background-image 0.25s ease;
    }

    /* Hover-Akzent auf Knotenpunkten (.fi-hover-cross Look) */
    .vdi-seo-dates-bar:hover::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M6 0v6M6 6h6' stroke='%2364748B' stroke-width='1.2'/%3E%3C/svg%3E");
    }

    .vdi-seo-dates-bar:hover::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 0v6M0 6h6' stroke='%2364748B' stroke-width='1.2'/%3E%3C/svg%3E");
    }

    .vdi-seo-dates-bar .vdi-date-published:hover::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 0v12M6 6h6' stroke='%2364748B' stroke-width='1.2'/%3E%3C/svg%3E");
    }

    .vdi-seo-dates-bar .vdi-author:hover::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 0v12M0 6h6' stroke='%2364748B' stroke-width='1.2'/%3E%3C/svg%3E");
    }

    .vdi-seo-dates-bar .vdi-date-published:hover::after,
    .vdi-seo-dates-bar .vdi-date-modified:hover::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M0 6h12M6 0v6' stroke='%2364748B' stroke-width='1.2'/%3E%3C/svg%3E");
    }
}

/* ------------------------------------------------------------------------
   5. ICONS & TYPOGRAFIE
   ------------------------------------------------------------------------ */
.vdi-seo-dates-bar .vdi-icon {
    width: 17px;
    height: 17px;
    display: inline-block;
    flex-shrink: 0;
    stroke: #94a3b8;
}

.vdi-seo-dates-bar .vdi-icon--published,
.vdi-seo-dates-bar .vdi-icon--modified,
.vdi-seo-dates-bar .vdi-icon--author {
    stroke: #94a3b8;
}

.vdi-seo-dates-bar .vdi-date-val {
    font-weight: 400;
    color: #475569;
}

.vdi-seo-dates-bar .vdi-author-link {
    font-weight: 400;
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.vdi-seo-dates-bar .vdi-author-link:hover {
    color: #1e293b;
    text-decoration: underline;
}

.vdi-seo-dates-bar .vdi-author-role {
    color: #94a3b8;
    font-size: 10.5px;
}

/* ------------------------------------------------------------------------
   6. MOBILE & TABLET ANSICHT (unter 960px - analog zu .fi-border-grid)
   ------------------------------------------------------------------------ */
@media (max-width: 959px) {
    .vdi-seo-dates-spacer {
        border-left: none;
        border-right: none;
        height: 20px;
    }

    .vdi-seo-dates-bar {
        flex-direction: column;
        border-left: none;
        border-right: none;
        min-height: auto;
    }

    .vdi-seo-dates-bar .vdi-date-published,
    .vdi-seo-dates-bar .vdi-date-modified,
    .vdi-seo-dates-bar .vdi-author {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 20px;
        border-right: none;
        white-space: normal;
    }

    .vdi-seo-dates-bar .vdi-date-published,
    .vdi-seo-dates-bar .vdi-date-modified {
        border-bottom: 1px solid #E2E8F0;
    }
}

/* ------------------------------------------------------------------------
   7. DARK MODE ANPASSUNG (.style-dark / .style-color-135861-bg)
   ------------------------------------------------------------------------ */
.style-dark .vdi-seo-dates-spacer,
.style-color-135861-bg .vdi-seo-dates-spacer,
.style-dark .vdi-seo-dates-bar,
.style-color-135861-bg .vdi-seo-dates-bar,
.style-dark .vdi-seo-dates-bar .vdi-date-published,
.style-dark .vdi-seo-dates-bar .vdi-date-modified,
.style-color-135861-bg .vdi-seo-dates-bar .vdi-date-published,
.style-color-135861-bg .vdi-seo-dates-bar .vdi-date-modified {
    border-color: #334155 !important;
    color: #94a3b8;
}

.style-dark .vdi-seo-dates-bar .vdi-date-val,
.style-dark .vdi-seo-dates-bar .vdi-author-link,
.style-color-135861-bg .vdi-seo-dates-bar .vdi-date-val,
.style-color-135861-bg .vdi-seo-dates-bar .vdi-author-link {
    color: #cbd5e1;
    font-weight: 400;
}

.style-dark .vdi-seo-dates-bar .vdi-date-published:hover,
.style-dark .vdi-seo-dates-bar .vdi-date-modified:hover,
.style-dark .vdi-seo-dates-bar .vdi-author:hover,
.style-color-135861-bg .vdi-seo-dates-bar .vdi-date-published:hover,
.style-color-135861-bg .vdi-seo-dates-bar .vdi-date-modified:hover,
.style-color-135861-bg .vdi-seo-dates-bar .vdi-author:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

@media (min-width: 960px) {
    .style-dark .vdi-seo-dates-bar::before,
    .style-color-135861-bg .vdi-seo-dates-bar::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M6 0v6M6 6h6' stroke='%23475569' stroke-width='1'/%3E%3C/svg%3E") !important;
    }

    .style-dark .vdi-seo-dates-bar::after,
    .style-color-135861-bg .vdi-seo-dates-bar::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M6 0v6M0 6h6' stroke='%23475569' stroke-width='1'/%3E%3C/svg%3E") !important;
    }

    .style-dark .vdi-seo-dates-bar .vdi-date-published::before,
    .style-color-135861-bg .vdi-seo-dates-bar .vdi-date-published::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M6 0v12M6 6h6' stroke='%23475569' stroke-width='1'/%3E%3C/svg%3E") !important;
    }

    .style-dark .vdi-seo-dates-bar .vdi-author::before,
    .style-color-135861-bg .vdi-seo-dates-bar .vdi-author::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M6 0v12M0 6h6' stroke='%23475569' stroke-width='1'/%3E%3C/svg%3E") !important;
    }

    .style-dark .vdi-seo-dates-bar .vdi-date-published::after,
    .style-dark .vdi-seo-dates-bar .vdi-date-modified::after,
    .style-color-135861-bg .vdi-seo-dates-bar .vdi-date-published::after,
    .style-color-135861-bg .vdi-seo-dates-bar .vdi-date-modified::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M0 6h12M6 0v6' stroke='%23475569' stroke-width='1'/%3E%3C/svg%3E") !important;
    }
}

/* Uncode Theme Spezifik: Volle 12-Spalten-Breite bei Beiträgen mit Sidebar (.un-sidebar-layout) */
@media (min-width: 960px) {
    .un-sidebar-layout .col-lg-9 .vdi-seo-dates-spacer,
    .un-sidebar-layout .col-lg-9 .vdi-seo-dates-bar {
        width: calc(133.333333% + 36px);
        max-width: none;
        box-sizing: border-box;
    }
}



