/* WordPress Default Widget Styles */

/* General Widget Styling */
.widget {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.widget-title {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-green);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-orange);
    border-radius: 1px;
}

/* Recent Posts Widget */
.widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_entries li {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.widget_recent_entries li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget_recent_entries li:hover {
    background: rgba(var(--primary-green-rgb), 0.05);
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 8px;
}

.widget_recent_entries a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
}

.widget_recent_entries a:hover {
    color: var(--primary-green);
}

.widget_recent_entries .post-date {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.widget_recent_entries .post-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-green);
}

/* Recent Comments Widget */
.widget_recent_comments ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_comments li {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-green);
    transition: all 0.3s ease;
}

.widget_recent_comments li:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.widget_recent_comments a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.widget_recent_comments a:hover {
    color: var(--primary-green);
}

.widget_recent_comments .comment-author-link {
    color: var(--primary-green);
    font-weight: 600;
}

/* Archives Widget */
.widget_archive ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_archive li {
    margin-bottom: 12px;
}

.widget_archive a {
    color: #495057;
    text-decoration: none;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.widget_archive a:hover {
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.widget_archive a::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary-green);
    transition: color 0.3s ease;
}

.widget_archive a:hover::before {
    color: white;
}

/* Categories Widget */
.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories li {
    margin-bottom: 8px;
}

.widget_categories a {
    color: #495057;
    text-decoration: none;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.widget_categories a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.widget_categories a:hover::before {
    left: 100%;
}

.widget_categories a:hover {
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.widget_categories a .cat-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget_categories a .cat-name::before {
    content: '\f07b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-green);
    transition: color 0.3s ease;
}

.widget_categories a:hover .cat-name::before {
    color: white;
}

.widget_categories .cat-count {
    background: rgba(var(--primary-green-rgb), 0.1);
    color: var(--primary-green);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.widget_categories a:hover .cat-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget_tag_cloud .tagcloud a {
    background: #f8f9fa;
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem !important;
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    display: inline-block;
}

.widget_tag_cloud .tagcloud a:hover {
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Search Widget */
.widget_search .search-form {
    position: relative;
    display: flex;
    gap: 10px;
}

.widget_search .search-field {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.widget_search .search-field:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(var(--primary-green-rgb), 0.1);
}

.widget_search .search-submit {
    padding: 12px 20px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.widget_search .search-submit:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Calendar Widget */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.widget_calendar caption {
    background: var(--primary-green);
    color: white;
    padding: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.widget_calendar th {
    background: #f8f9fa;
    padding: 10px 5px;
    font-weight: 600;
    color: #495057;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.widget_calendar td {
    padding: 8px;
    text-align: center;
    border: 1px solid #f1f3f4;
    transition: background 0.3s ease;
}

.widget_calendar td:hover {
    background: rgba(var(--primary-green-rgb), 0.1);
}

.widget_calendar td a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.widget_calendar td a:hover {
    background: var(--primary-green);
    color: white;
}

/* Text Widget */
.widget_text .textwidget {
    line-height: 1.6;
    color: #495057;
}

.widget_text .textwidget p {
    margin-bottom: 15px;
}

.widget_text .textwidget a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.widget_text .textwidget a:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

/* RSS Widget */
.widget_rss ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_rss li {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-green);
    transition: all 0.3s ease;
}

.widget_rss li:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.widget_rss .rsswidget {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.widget_rss .rsswidget:hover {
    color: var(--primary-green);
}

.widget_rss .rss-date {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.widget_rss .rssSummary {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Meta Widget */
.widget_meta ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_meta li {
    margin-bottom: 8px;
}

.widget_meta a {
    color: #495057;
    text-decoration: none;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.widget_meta a:hover {
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.widget_meta a::before {
    content: '\f0c1';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary-green);
    transition: color 0.3s ease;
}

.widget_meta a:hover::before {
    color: white;
}

/* Pages Widget */
.widget_pages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_pages li {
    margin-bottom: 5px;
}

.widget_pages a {
    color: #495057;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.widget_pages a:hover {
    background: rgba(var(--primary-green-rgb), 0.1);
    color: var(--primary-green);
    border-left-color: var(--primary-green);
    text-decoration: none;
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .widget {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .widget-title {
        font-size: 1.2rem;
    }
    
    .widget_search .search-form {
        flex-direction: column;
    }
    
    .widget_categories a,
    .widget_archive a,
    .widget_meta a {
        padding: 8px 12px;
    }
}