/* ==========================================================================
   SIDEBAR STYLES - Only loaded when sidebar is present
   ========================================================================== */

.widget-area {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.widget {
    margin-bottom: 2.5rem;
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.widget:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 0.75rem;
    font-weight: 600;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: #ff6b35;
}

/* Widget Lists */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: padding-left 0.3s ease;
}

.widget li:hover {
    padding-left: 10px;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.5;
}

.widget a:hover {
    color: #0073aa;
    text-decoration: none;
}

/* Search Widget */
.widget_search .search-form {
    position: relative;
}

.widget_search .search-field {
    width: 100%;
    padding: 0.75rem 40px 0.75rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.widget_search .search-field:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.widget_search .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background-color: #0073aa;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.widget_search .search-submit:hover {
    background-color: #005a87;
}

/* Recent Posts Widget */
.widget_recent_entries ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget_recent_entries li {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-bottom: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.widget_recent_entries li:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    padding-left: 1rem;
}

.widget_recent_entries a {
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: block;
}

.widget_recent_entries .post-date {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 0.5rem;
}

/* Categories Widget */
.widget_categories ul {
    display: grid;
    gap: 0.5rem;
}

.widget_categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.widget_categories a:hover {
    background-color: #0073aa;
    color: #fff;
    transform: translateX(5px);
}

.widget_categories .count {
    background-color: #0073aa;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.widget_categories a:hover .count {
    background-color: #fff;
    color: #0073aa;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget_tag_cloud a {
    background-color: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.widget_tag_cloud a:hover {
    background-color: #0073aa;
    color: #fff;
    transform: translateY(-1px);
}

/* Archives Widget */
.widget_archive select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    background-color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.widget_archive select:focus {
    outline: none;
    border-color: #0073aa;
}

/* Calendar Widget */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.widget_calendar th,
.widget_calendar td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.widget_calendar th {
    background-color: #0073aa;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.widget_calendar td {
    transition: background-color 0.3s ease;
}

.widget_calendar td:hover {
    background-color: #f8f9fa;
}

.widget_calendar a {
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
}

.widget_calendar a:hover {
    color: #005a87;
}

/* RSS Widget */
.widget_rss ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget_rss li {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-bottom: none;
}

.widget_rss .rsswidget {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.widget_rss .rss-date {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 0.5rem;
}

.widget_rss cite {
    font-size: 0.85rem;
    color: #666;
    font-style: normal;
}

/* Text Widget */
.widget_text .textwidget {
    line-height: 1.6;
    color: #444;
}

.widget_text .textwidget p {
    margin-bottom: 1rem;
}

.widget_text .textwidget a {
    color: #0073aa;
    text-decoration: underline;
}

.widget_text .textwidget a:hover {
    color: #005a87;
}

/* Custom HTML Widget */
.widget_custom_html .textwidget {
    line-height: 1.6;
}

/* Media Widget */
.widget_media_image img,
.widget_media_video video,
.widget_media_audio audio {
    width: 100%;
    border-radius: 8px;
}

/* Navigation Menu Widget */
.widget_nav_menu ul {
    padding: 0;
}

.widget_nav_menu li {
    border-bottom: 1px solid #f0f0f0;
}

.widget_nav_menu a {
    padding: 0.75rem 0;
    display: block;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget_nav_menu a:hover {
    color: #0073aa;
    padding-left: 10px;
}

/* Meta Widget */
.widget_meta ul {
    padding: 0;
}

.widget_meta a {
    color: #666;
    font-size: 0.95rem;
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
    .widget-area {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .widget-area {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .widget {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .widget-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .widget-area {
        padding: 1rem;
    }
    
    .widget {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .widget_categories a,
    .widget_recent_entries li {
        padding: 0.5rem;
    }
    
    .widget_tag_cloud a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem !important;
    }
}

























