/* ==========================================================================
   VOID SOCIAL STREAM - COMPLETE PREMIUM CSS (V2.3 - Overlay + Badges)
   Author: vo1dCreation for Walter Schneider
   ========================================================================== */

/* --- 1. GLOBAL WRAPPER & FILTERS --- */
.void-stream-wrapper {
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- HEADER AREA --- */
.void-header-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 50px;
}

.void-header-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- BUTTONS & FILTERS --- */
.void-stream-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.void-filter {
    position: relative;
    height: 44px;
    padding: 0 15px;
    background: #132531; /* Walter Schneider Dunkel */
    color: #fff;
    border: none !important;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.void-filter[data-filter="youtube"]:hover { background: #FF0000; }
.void-filter[data-filter="instagram"]:hover { background: #E1306C; }
.void-filter[data-filter="linkedin"]:hover { background: #0077B5; }
.void-filter[data-filter="tiktok"]:hover { background: #010101; }

.void-filter.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #132531;
}

.filter-icon svg { width: 20px; height: 20px; fill: currentColor; }

/* --- TOOLTIP LOGIK --- */
.void-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #9fb3b3; /* Walter Schneider Hell */
    color: #132531;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
}

.void-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #9fb3b3 transparent transparent transparent;
}

.void-filter:hover .void-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- SUCHE --- */
.void-search-wrapper {
    position: relative;
    width: 300px;
}

#void-search-input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 15px;
    border: 2px solid #132531;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #132531;
    outline: none;
}

.void-search-wrapper .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #132531;
}

/* --- 2. GRID SYSTEM --- */
.void-stream-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1400px) { .void-stream-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .void-stream-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px)  { .void-stream-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px)  { 
    .void-stream-grid { grid-template-columns: 1fr; }
    .void-header-flex { flex-direction: column; width: 100%; }
    .void-search-wrapper { width: 100%; }
}

/* --- 3. KARTEN DESIGN (AGENTUR OVERLAY) --- */
.void-post-card {
    background: #111;
    border-radius: 4px; /* Gewünschter 4px Radius */
    overflow: hidden;
    position: relative;
    border: 1px solid #efefef;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 100%;
    min-width: 0;
    aspect-ratio: 4 / 5; /* Modernes Hochformat */
}

/* Kaskaden-Effekt Base */
.void-post-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, box-shadow 0.3s ease;
}

.void-post-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.void-post-card.void-hidden-post {
    display: none !important;
}

.void-post-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Permanente Abdunkelung für das Thumbnail */
.void-post-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 40%);
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.void-post-card:hover::after {
    opacity: 0; /* Verschwindet beim Hovern */
}

/* Das Hauptbild */
.void-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

.void-post-card:hover .void-main-img {
    transform: scale(1.08);
    /* Macht das Bild extrem dunkel, damit der weiße Text perfekt lesbar ist! */
    filter: brightness(0.3); 
}

/* Play Button Overlay (YouTube/Video) */
.void-play-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(19, 37, 49, 0.7);
    backdrop-filter: blur(4px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.void-play-overlay-btn svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
	opacity: 0.8;
}

.void-post-card:hover .void-play-overlay-btn {
    opacity: 0; 
    transform: translate(-50%, -50%) scale(0.5);
}

/* --- NETWORK CORNER BADGES (DEIN ORIGINAL DREIECK) --- */
.void-corner-badge {
    position: absolute;
    top: 0; right: 0;
    width: 70px; height: 70px;
    z-index: 10;
}

.void-corner-badge::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.void-post-card[data-network="instagram"] .void-corner-badge::before { background: #E1306C; }
.void-post-card[data-network="youtube"] .void-corner-badge::before { background: #FF0000; }
.void-post-card[data-network="linkedin"] .void-corner-badge::before { background: #0077B5; }
.void-post-card[data-network="tiktok"] .void-corner-badge::before { background: #010101; border-bottom: 1px solid #333; }

/* FIX: Das Icon wird direkt in die obere rechte Ecke gezwungen */
.void-corner-badge svg { 
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px; 
    height: 22px; 
    z-index: 11;
    fill: #fff; 
}


/* --- DAS SLIDE-IN TEXT-OVERLAY (HELLE SCHRIFT) --- */
.void-post-overlay-content {
    position: absolute;
    bottom: 0; 
    left: 0; 
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
    color: #fff;
    transform: translateY(100%); 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.void-post-card:hover .void-post-overlay-content {
    transform: translateY(0);
}

.void-author-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.void-post-card[data-network="instagram"] .void-author-label { color: #fbad50; }
.void-post-card[data-network="youtube"] .void-author-label { color: #ff4e4e; }
.void-post-card[data-network="tiktok"] .void-author-label { color: #00f2ea; }
.void-post-card[data-network="linkedin"] .void-author-label { color: #5bc0de; }

.void-post-text {
    font-size: 15px; /* Etwas größer für bessere Lesbarkeit */
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 12px;
    color: #ffffff; /* Reinweiß */
    text-shadow: 0 1px 4px rgba(0,0,0,0.9); /* Starker Schatten für extremen Kontrast */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.void-post-date-label {
    font-size: 12px;
    color: #dddddd; /* Helleres Grau */
    font-weight: 600;
}

#void-load-more {
    max-width: 275px;
    margin: 25px auto;
}

/* --- 4. LIGHTBOX --- */
.void-lightbox {
    border: none !important;
    padding: 0;
    max-width: 1200px;
    width: 90%;
    height: 85vh;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: transparent;
    overflow: hidden;
}

.void-lightbox::backdrop {
    background: rgba(19, 37, 49, 0.9);
    backdrop-filter: blur(8px);
}

.void-lightbox-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.void-lightbox-close {
    position: absolute;
    top: 15px; 
    right: 20px;
    background: rgba(255,255,255,0.9) !important; 
    border: 1px solid #efefef !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    font-weight: bold;
    cursor: pointer; 
    z-index: 1000;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    color: #132531 !important;
    padding: 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}
.void-lightbox-close:hover { color: #9fb3b3 !important; background: #fff !important; }

.void-lightbox-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    height: 100%;
}

@media (max-width: 900px) {
    .void-lightbox { width: 95%; height: 95vh; }
    .void-lightbox-grid { grid-template-columns: 1fr; grid-template-rows: 40vh 1fr; }
}

.void-lightbox-media {
    background: #000;
    display: flex; align-items: center; justify-content: center;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.void-lightbox-media img,
.void-lightbox-media iframe {
    width: 100%; height: 100%;
    object-fit: contain;
    border: none;
}

.void-video-wrapper {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}

.void-video-wrapper video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.void-lightbox-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0; 
    background: #fff;
    box-sizing: border-box;
}

.void-lb-header {
    padding-bottom: 15px;
    border-bottom: 1px solid #efefef;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.void-lb-user { display: flex; align-items: center; }

.void-lb-avatar {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: #132531;
    margin-right: 15px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: bold;
}

.void-lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.void-lb-username { font-weight: bold; color: #132531; }

.void-lb-body {
    flex: 1 1 auto; 
    min-height: 0; 
    overflow-y: auto; 
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    padding-right: 15px;
    word-break: break-word;
}

.void-lb-body::-webkit-scrollbar { width: 6px; }
.void-lb-body::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.void-lb-body::-webkit-scrollbar-thumb { background: #9fb3b3; border-radius: 10px; }

.void-lb-meta { font-size: 12px; color: #888; margin-bottom: 15px; flex-shrink: 0; }
.void-lb-footer { margin-top: auto; flex-shrink: 0; }

.void-lb-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #132531 !important;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s;
    border: none !important;
    cursor: pointer;
}

.void-lb-btn:hover { background: #9fb3b3 !important; color: #132531 !important; }