/* ==========================================================================
   VOID SOCIAL STREAM - COMPLETE PREMIUM CSS (V2.2)
   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 --- */
.void-post-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #efefef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 100%;
    min-width: 0;
}

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

.void-post-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.2;
    background: #000;
    overflow: hidden;
    flex-shrink: 0;
}

.void-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.void-post-card[data-media-type="video"] .void-post-media::after {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(19, 37, 49, 0.7);
    backdrop-filter: blur(4px);
    color: white;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    border: 2px solid rgba(255,255,255,0.8);
    z-index: 2;
}

/* --- NETWORK CORNER BADGES --- */
.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; }

.void-badge-content {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 23px;
    height: 23px;
    z-index: 11;
    color: #fff;
}

.void-badge-content svg { width: 100%; height: 100%; fill: currentColor; }

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

/* Schließen Button (X) - Theme-Safe Fix */
.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; }
}

/* Medien-Sektion & VIDEO FIX */
.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 {
    /* FIX: Verhindert das "Verschlucken" der Controls */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Info Box & SCROLL FIX */
.void-lightbox-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0; /* WICHTIG: Ermöglicht das Scrollen des Kind-Elements */
    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; /* Nimmt verfügbaren Platz ein */
    min-height: 0; /* WICHTIG für den Scroller */
    overflow-y: auto; 
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    padding-right: 15px;
    word-break: break-word;
}

/* Custom Scrollbar */
.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;
}

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

/* --- 5. POST TEXT & TRUNCATION --- */
.void-post-content { padding: 15px; flex-grow: 1; display: flex; flex-direction: column;border-bottom: 20px solid #132531; }
.void-post-text { 
    font-size: 14px; 
    line-height: 1.5; 
    color: #444; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
    word-break: break-word;
}

/* --- KASKADEN-EFFEKT BASE --- */
.void-post-card {
    opacity: 0;
    transform: translateY(20px);
    /* Kurze, knackige Transition für den Wave-Effekt */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Die Klasse, die das Einrücken triggert */
.void-post-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Versteckte Posts (ab Post 6) radikal ausblenden */
.void-post-card.void-hidden-post {
    display: none !important;
}
#void-load-more {
max-width: 275px;
	margin: 25px auto;}