/*
Theme Name: vTubes AI
Author: Miyuki
Description: Komplett neues, eigenständiges Theme (Cache-frei).
Version: 1.7 - Hardcoded Clean Search Bar
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@900&family=Teko:wght@400;600&family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
    --stripe-w: 60px;
    --sidebar-w: 280px;
    --accent: #ff00aa;
    --bg-color: #f8f9fa;
    --grid-line: rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Teko', sans-serif;
    background-color: var(--bg-color);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    color: #000;
    display: flex;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.25s; }

/* ==================== LIGHT SIDEBAR ==================== */
.sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    display: flex;
    z-index: 1000;
    box-shadow: 3px 0 20px rgba(0,0,0,0.15);
}

.sidebar-stripe {
    width: var(--stripe-w);
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 0 15px rgba(0,0,0,0.4);
}

.sidebar-stripe span {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.72rem;
    font-weight: 900;
    letter-spacing: 5px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

/* Haupt-Sidebar */
.sidebar-main {
    width: calc(var(--sidebar-w) - var(--stripe-w));
    background: #e5e7eb !important; 
    display: flex;
    flex-direction: column;
    color: #222;
    border-right: 1px solid #ddd;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ==================== LOGO BEREICH (SPLIT BACKGROUND) ==================== */
.logo-area {
    background: linear-gradient(90deg, transparent 50%, #111111 50%);
    padding: 20px 0; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-area img, .custom-logo-link img {
    max-width: 90% !important; 
    height: auto !important;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.logo-area h1 {
    color: #111;
    font-size: 1.85rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    padding: 25px 20px;
}

/* ==================== FESTE SUCH-LEISTE ==================== */
.custom-search-bar {
    background: #111111; 
    padding: 12px 20px;
    border-bottom: 2px solid #222;
}

.custom-search-bar .search-form {
    display: flex;
    align-items: center;
    width: 100%;
}

.custom-search-bar .search-icon {
    color: #888;
    margin-right: 10px;
    font-size: 1.1rem;
}

.custom-search-bar .search-field {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    font-family: 'Orbitron', sans-serif;
    outline: none;
}

.custom-search-bar .search-field::placeholder {
    color: #555;
}

/* ==================== WIDGET MENÜ ==================== */
.menu-area { 
    padding: 0; 
    flex-grow: 1;
}

/* Widget Menü Reset */
.widget_nav_menu ul { 
    list-style: none; 
    padding: 0;
    margin: 0;
}

.widget_nav_menu li { 
    margin-bottom: 0; 
    position: relative; /* Wichtig für sauberes Dropdown-Verhalten */
}

/* Haupt-Links */
.widget_nav_menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem; /* Etwas kleiner für den sleeken Look */
    font-weight: 700; /* Reduziert von 900, damit es nicht so klotzig wirkt */
    color: #000;
    background: transparent;
    letter-spacing: 0.5px;
}

.widget_nav_menu a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Dropdown-Pfeile (▼) für Menüs mit Unterpunkten */
.widget_nav_menu .menu-item-has-children > a::after,
.widget_nav_menu .page_item_has_children > a::after {
    content: '▼';
    font-size: 0.65rem;
    color: #000;
    margin-left: 10px;
    transition: 0.2s;
}

.widget_nav_menu .menu-item-has-children > a:hover::after,
.widget_nav_menu .page_item_has_children > a:hover::after {
    color: var(--accent);
}

/* === NEU: UNTERMENÜS (DROPDOWNS) VERSTECKEN & STYLEN === */

/* Standardmäßig ausblenden */
.widget_nav_menu .sub-menu,
.widget_nav_menu .children {
    display: none; 
    background: rgba(0,0,0,0.03); /* Hebt das Dropdown leicht vom Grid ab */
    border-left: 2px solid var(--accent); /* Kleine optische Trennung */
}

/* Beim Hovern über den übergeordneten Punkt einblenden */
.widget_nav_menu .menu-item-has-children:hover > .sub-menu,
.widget_nav_menu .page_item_has_children:hover > .children {
    display: block;
    animation: fadeInMenu 0.2s ease-in-out;
}

/* Design der Links IM Untermenü anpassen */
.widget_nav_menu .sub-menu a,
.widget_nav_menu .children a {
    padding: 10px 20px 10px 30px; /* Mehr Einrückung links */
    font-size: 0.9rem; /* Etwas kleiner als das Hauptmenü */
    font-weight: 600;
    color: #444; /* Etwas weicheres Schwarz */
}

/* Weiche Einblend-Animation für das Dropdown */
@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

.widget-title { display: none; }

/* Fallback-Text */
.menu-area p {
    padding: 20px;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* ==================== HAUPTINHALT ==================== */
.main-content {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
    padding: 40px;
}

.mockup-pink-line {
    height: 5px;
    background-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 0, 170, 0.6);
    width: 100%;
    margin-bottom: 30px;
}

/* Grid & Cards */
.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
@media (max-width: 1600px) { .content-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1200px) { .content-grid { grid-template-columns: repeat(2, 1fr); } }

.post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s;
}
.post-card:hover { transform: translateY(-5px); }

.card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #eee;
    display: block;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 15px;
}
.card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-meta .date { color: #666; font-size: 1.2rem; }
.tag-badge {
    background: #3b82f6;
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Admin Bar Fix */
.admin-bar .sidebar-wrapper {
    top: 32px !important;
    height: calc(100vh - 32px) !important;
}