/**
 * Sidebar Styles
 * Modern and responsive design for the sidebar
 */

/* General Sidebar Styling */
.widget-area {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Widget Styling */
.widget {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
}

.widget:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
    color: #333;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #2271b1;
    border-radius: 3px;
}

/* Category List Styling */
.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.widget_categories li:last-child {
    border-bottom: none;
}

.widget_categories li:hover {
    padding-left: 5px;
    background-color: #f5f5f5;
}

.widget_categories a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories a:hover {
    color: #2271b1;
}

.widget_categories .count {
    background-color: #eaeaea;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 12px;
    color: #666;
    min-width: 25px;
    text-align: center;
}

.no-categories {
    color: #777;
    font-style: italic;
    padding: 10px 0;
}

/* Recent Posts Widget Styling */
.widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_entries li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.widget_recent_entries li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget_recent_entries li a {
    display: block;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
    padding-left: 0;
    line-height: 1.4;
}

.widget_recent_entries li a:hover {
    color: #2271b1;
}

/* Add post thumbnails to recent posts */
.widget_recent_entries li {
    display: flex;
    align-items: flex-start;
}

.recent-post-thumbnail {
    width: 70px;
    height: 70px;
    margin-right: 12px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eaeaea;
}

.recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.widget_recent_entries li:hover .recent-post-thumbnail img {
    transform: scale(1.05);
}

.recent-post-content {
    flex: 1;
}

.recent-post-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Affiliate Products Styling */
.affiliate-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.affiliate-product-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.affiliate-product-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
    margin-right: 15px;
    flex-shrink: 0;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.affiliate-product-item:hover .product-thumbnail img {
    transform: scale(1.05);
}

.no-image {
    background-color: #f0f0f0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image i {
    font-size: 24px;
    color: #ccc;
}

.product-details {
    flex: 1;
}

.product-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #2271b1;
}

.product-price {
    display: inline-block;
    font-weight: 600;
    color: #e91e63;
    font-size: 14px;
    margin-bottom: 8px;
}

.view-product {
    font-size: 12px;
    color: #2271b1;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.view-product i {
    font-size: 10px;
    margin-left: 3px;
    transition: margin-left 0.3s ease;
}

.view-product:hover {
    color: #135e96;
}

.view-product:hover i {
    margin-left: 5px;
}

.view-all-products {
    margin-top: 15px;
    display: inline-block;
    background-color: #f8f8f8;
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    text-align: center;
    width: 100%;
}

.view-all-products:hover {
    background-color: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.no-products {
    color: #777;
    font-style: italic;
    padding: 10px 0;
}

/* Subscribe Form Styling */
.widget_subscribe {
    background-color: #f0f7fc;
    padding: 20px;
    border-radius: 6px;
}

.widget_subscribe .widget-title {
    margin-top: 0;
}

.widget_subscribe p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.newsletter-form {
    position: relative;
    display: flex;
}

.newsletter-form input[type="email"] {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    width: 100%;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #2271b1;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #135e96;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .widget-area {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .widget-area {
        padding: 20px;
    }
    
    .widget-title {
        font-size: 16px;
    }
    
    .affiliate-product-item {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .product-thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .recent-post-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: 10px;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .widget {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .product-thumbnail {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .recent-post-thumbnail {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .widget_subscribe {
        padding: 15px;
    }
} 