/*
=================================================================
    UNIFIED SIDEBAR STYLES
=================================================================

Exclusive styles for the custom unified sidebar
Used on single blog posts and single courses

Features:
- Clean card-based design
- Consistent typography
- Modern spacing
- No !important overrides needed

Author: Poli Central
Version: 1.0.0
*/

/* ========================================
   SIDEBAR CONTAINER
   ======================================== */

.poli-unified-sidebar {
    width: 100%;
}

/* ========================================
   WIDGET CARD DESIGN
   ======================================== */

.poli-sidebar-widget {
    margin-bottom: 30px;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.poli-sidebar-widget:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.poli-sidebar-widget:last-child {
    margin-bottom: 0;
}

/* ========================================
   WIDGET TITLES
   ======================================== */

.poli-widget-title {
    margin: 0 0 20px 0;
    padding: 0 0 12px 0;
    border-bottom: 2px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   WIDGET CONTENT
   ======================================== */

.poli-widget-content {
    color: #666;
    line-height: 1.6;
}

/* Widget paragraphs */
.poli-sidebar-widget p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

.poli-sidebar-widget p:last-child {
    margin-bottom: 0;
}

/* ========================================
   WIDGET LISTS
   ======================================== */

.poli-sidebar-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.poli-sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.poli-sidebar-widget ul li:last-child {
    border-bottom: none;
}

/* Widget links */
.poli-sidebar-widget a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.poli-sidebar-widget a:hover {
    color: #ff6b6b;
}

/* ========================================
   SPECIFIC WIDGET TYPES
   ======================================== */

/* Search widget */
.poli-sidebar-widget.widget_search input[type="search"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.poli-sidebar-widget.widget_search input[type="submit"] {
    margin-top: 10px;
    padding: 10px 20px;
    background: #ff6b6b;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.poli-sidebar-widget.widget_search input[type="submit"]:hover {
    background: #ff5252;
}

/* Categories widget */
.poli-sidebar-widget.widget_categories ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.poli-sidebar-widget.widget_categories .post-count {
    color: #999;
    font-size: 13px;
}

/* Recent posts widget */
.poli-sidebar-widget.widget_recent_entries ul li {
    padding: 12px 0;
}

.poli-sidebar-widget.widget_recent_entries .post-date {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 13px;
}

/* Tag cloud widget */
.poli-sidebar-widget.widget_tag_cloud a {
    display: inline-block;
    margin: 0 5px 5px 0;
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.poli-sidebar-widget.widget_tag_cloud a:hover {
    background: #ff6b6b;
    color: #ffffff;
}

/* ========================================
   HIDE COMMENT WIDGETS
   ======================================== */

.poli-sidebar-widget.widget_recent_comments,
.poli-sidebar-widget.widget_comments {
    display: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 768px) {
    .poli-sidebar-widget {
        margin-bottom: 25px;
        padding: 20px;
    }

    .poli-widget-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .poli-sidebar-widget {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 6px;
    }

    .poli-widget-title {
        font-size: 14px;
        padding-bottom: 10px;
    }

    .poli-sidebar-widget ul li {
        padding: 6px 0;
    }
}
