/* Sidebar Styles for Kindergarten Theme */

/* Sidebar Layout */
.sidebar {
    padding-left: 30px;
}

.sidebar .widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar .widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #FDE3A1;
    padding-bottom: 10px;
}

/* Before/After Content Sidebars */
.before-content-sidebar,
.after-content-sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.before-content-sidebar .widget,
.after-content-sidebar .widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px;
}

.before-content-sidebar .widget:last-child,
.after-content-sidebar .widget:last-child {
    margin-bottom: 0;
}

/* Custom Page Sidebar */
.custom-page-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #FDE3A1;
}

.custom-page-sidebar .widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px;
}

.custom-page-sidebar .widget:last-child {
    margin-bottom: 0;
}

/* Default Sidebar */
.default-sidebar .widget {
    background: #fff;
    border: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 991px) {
    .sidebar {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .before-content-sidebar,
    .after-content-sidebar {
        padding: 20px;
        margin: 15px 0;
    }
    
    .custom-page-sidebar {
        padding: 15px;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .sidebar .widget {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .before-content-sidebar,
    .after-content-sidebar {
        padding: 15px;
    }
    
    .custom-page-sidebar {
        padding: 15px;
    }
}

/* Widget Styling */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #FDE3A1;
}

/* Search Widget */
.widget .search-form {
    position: relative;
}

.widget .search-form input[type="search"] {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
}

.widget .search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #FDE3A1;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    color: #333;
    cursor: pointer;
}

/* Recent Posts Widget */
.widget .recent-posts li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget .recent-posts img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.widget .recent-posts .post-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.widget .recent-posts .post-date {
    font-size: 12px;
    color: #999;
}

/* Categories Widget */
.widget .cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget .cat-item .count {
    background: #FDE3A1;
    color: #333;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Tag Cloud Widget */
.widget .tagcloud a {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 5px 12px;
    margin: 3px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.widget .tagcloud a:hover {
    background: #FDE3A1;
    color: #333;
}

/* Calendar Widget */
.widget table {
    width: 100%;
    border-collapse: collapse;
}

.widget table th,
.widget table td {
    text-align: center;
    padding: 8px;
    border: 1px solid #e9ecef;
}

.widget table th {
    background: #f8f9fa;
    font-weight: 600;
}

.widget table .today {
    background: #FDE3A1;
    font-weight: 600;
}

/* Text Widget */
.widget .textwidget {
    line-height: 1.6;
}

.widget .textwidget p:last-child {
    margin-bottom: 0;
}

/* RSS Widget */
.widget .rss-date {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.widget .rssSummary {
    font-size: 14px;
    margin: 5px 0;
}

/* Archive Widget */
.widget .archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget .archive-item .count {
    background: #FDE3A1;
    color: #333;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
