/**
 * FineArt Blog Sidebar - Frontend CSS
 * Grautöne wie fineart-papers & fineart-faq
 */

/* Container */
.fabs-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fabs-content {
    flex: 1;
}

.fabs-sidebar {
    flex-shrink: 0;
}

/* Single Post: Sidebar nach unten verschieben */
.single-post .fabs-sidebar-widget {
    margin-top: 0;
}

/* Falls Post Featured Image da ist, noch mehr Abstand */
.single-post .et_featured_image ~ * .fabs-sidebar-widget,
.single-post .et_pb_title_featured_container ~ * .fabs-sidebar-widget {
    margin-top: 30px;
}

/* Widget Box */
.fabs-widget {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fabs-widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

/* Suche */
.fabs-search form {
    display: flex;
    gap: 8px;
}

.fabs-search input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.fabs-search input[type="search"]:focus {
    border-color: #333;
    outline: none;
}

.fabs-search button {
    padding: 10px 16px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.fabs-search button:hover {
    background: #222;
}

/* Kategorien */
.fabs-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fabs-categories-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* Keine Punkte bei Hauptkategorien */
}

.fabs-categories-list li:last-child {
    border-bottom: none;
}

.fabs-categories-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    justify-content: space-between;
}

.fabs-categories-list a:hover {
    color: #666;
}

.fabs-categories-list .count {
    color: #999;
    font-size: 12px;
}

/* Unterkategorien */
.fabs-categories-list .children {
    margin-top: 8px;
    padding-left: 20px; /* Einrückung */
    list-style: disc; /* Punkte NUR bei Unterkategorien */
    list-style-position: outside;
}

.fabs-categories-list .children li {
    padding: 4px 0;
    border-bottom: none; /* Keine Linie bei Unterkategorien */
    list-style: disc; /* Punkte bei Unterkategorien */
    margin-left: 0;
}

.fabs-categories-list .children a {
    display: inline; /* Kein Flex bei Unterkategorien */
}

/* Neueste Posts */
.fabs-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fabs-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.fabs-post-item:last-child {
    border-bottom: none;
}

.fabs-post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
}

.fabs-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fabs-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fabs-post-title {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s;
}

.fabs-post-title:hover {
    color: #666;
}

.fabs-post-excerpt {
    margin: 6px 0 4px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.fabs-post-date {
    color: #999;
    font-size: 12px;
}

/* Tags */
.fabs-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fabs-tag-cloud a {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.fabs-tag-cloud a:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* CTA Box */
.fabs-cta {
    background: #eee;
    border-color: #ccc;
}

.fabs-cta-text {
    margin: 0 0 16px 0;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.fabs-cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s;
}

.fabs-cta-button:hover {
    background: #222;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .fabs-container {
        flex-direction: column;
    }
    
    .fabs-content,
    .fabs-sidebar {
        width: 100% !important;
    }
    
    .fabs-sidebar {
        order: 2;
    }
    
    .fabs-content {
        order: 1;
    }
}

@media (max-width: 480px) {
    .fabs-widget {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .fabs-post-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .fabs-post-title {
        font-size: 13px;
    }
}
