/* Hentaidad Global Styles */
:root {
    --brand-red: #dc2626;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
    --zinc-950: #09090b;
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: #000; 
    color: #d4d4d8; 
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Scrollbar Optimierung --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { 
    background: var(--brand-red); 
    border-radius: 10px; 
}

.scrollbar-hide { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* --- Sidebar & Overlay --- */
#main-sidebar { 
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
}

#sidebar-overlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

/* Wir sprechen jetzt das erste span an, das unser Container ist */
#toggle-sidebar > span {
    display: flex !important; /* Wichtig, damit w-6/h-5 wieder wirken */
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end; 
    width: 24px;  /* w-6 */
    height: 18px; /* h-5 */
}

/* Die drei Striche IM Container */
#toggle-sidebar > span span {
    display: block !important;
    height: 2px !important;
    background-color: #e4e4e7 !important; /* zinc-200 */
    border-radius: 99px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Der mittlere Strich (das zweite span im span) */
#toggle-sidebar > span span:nth-child(2) { 
    width: 75%; 
}

/* Hover-Effekt */
#toggle-sidebar:hover span span:nth-child(2) {
    width: 100%;
}

/* X-Animation (Falls du die Klasse 'is-active' per JS setzt) */
#toggle-sidebar.is-active span span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#toggle-sidebar.is-active span span:nth-child(2) {
    opacity: 0;
}
#toggle-sidebar.is-active span span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Effekte & Bento Design --- */
.hero-overlay { 
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%); 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.animate-feed { 
    animation: fadeIn 0.6s ease-out forwards; 
}

.bento-card { 
    background: linear-gradient(145deg, var(--zinc-900) 0%, var(--zinc-950) 100%); 
    border: 1px solid var(--zinc-800); 
    transition: all 0.3s ease;
}

.bento-card:hover {
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.video-grid-item:hover .play-icon { 
    opacity: 1; 
    transform: scale(1.1); 
}
/* --- Video Page Specific Styles --- */
.video-container { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 16/9; 
    background-color: #000; 
    border-radius: 2.5rem; 
    overflow: hidden; 
}

/* Voting States */
.vote-active-up { 
    color: #22c55e !important; 
    background-color: rgba(34, 197, 94, 0.1) !important; 
    border-color: rgba(34, 197, 94, 0.2) !important; 
}

.vote-active-down { 
    color: #ef4444 !important; 
    background-color: rgba(239, 68, 68, 0.1) !important; 
    border-color: rgba(239, 68, 68, 0.2) !important; 
}

/* Image Gallery Styles */
.gallery-image-container img {
    transition: opacity 0.3s ease;
}

.gallery-image-container img:hover {
    opacity: 0.9;
}

#premium-gallery img {
    object-fit: contain; /* Verhindert das Verzerren innerhalb des Containers */
    max-width: 100%;
    height: auto;
}
#premium-gallery .gallery-item {
    cursor: zoom-in;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#notification-dropdown:not(.hidden) {
  animation: slideIn 0.2s ease-out forwards;
}
@keyframes highlight-fade {
    0% { background-color: rgba(239, 68, 68, 0.2); border-color: #ef4444; }
    100% { background-color: transparent; }
}

.highlight-comment {
    animation: highlight-fade 2s ease-out;
    border-radius: 1rem;
}
.sentiment-bar-fill {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#video-grid, #posts-container {
    min-height: 100vh;
}