/**
 * Footer Widget Styles
 * Enhanced styling for footer widgets to match theme aesthetic
 */

/* Footer Widget Container */
.footer-widget-area {
    margin-bottom: 2rem;
}

/* Widget Base Styling */
.footer-widget-area .widget {
    margin-bottom: 1.5rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.footer-widget-area .widget:last-child {
    margin-bottom: 0;
}

/* Widget Titles */
.footer-widget-area .widget-title,
.footer-widget-area .widget h3,
.footer-widget-area .widget h4 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}

/* Widget Content */
.footer-widget-area .widget p {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.footer-widget-area .widget p:last-child {
    margin-bottom: 0;
}

/* Widget Lists */
.footer-widget-area .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area .widget li {
    margin-bottom: 0.5rem;
    padding: 0;
}

.footer-widget-area .widget li:last-child {
    margin-bottom: 0;
}

.footer-widget-area .widget a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-widget-area .widget a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Recent Posts Widget Styling */
.footer-widget-area .widget_recent_entries ul li {
    border-bottom: 1px solid #374151;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-widget-area .widget_recent_entries ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.footer-widget-area .widget_recent_entries a {
    font-weight: 500;
    color: #e5e7eb;
    font-size: 0.875rem;
}

.footer-widget-area .widget_recent_entries .post-date {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* Categories Widget */
.footer-widget-area .widget_categories ul li,
.footer-widget-area .widget_pages ul li,
.footer-widget-area .widget_nav_menu ul li {
    position: relative;
    padding-left: 1rem;
}

.footer-widget-area .widget_categories ul li:before,
.footer-widget-area .widget_pages ul li:before,
.footer-widget-area .widget_nav_menu ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
}

/* Text Widget */
.footer-widget-area .widget_text .textwidget {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Search Widget */
.footer-widget-area .widget_search .search-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.footer-widget-area .widget_search .search-field {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 0.875rem;
}

.footer-widget-area .widget_search .search-field:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.footer-widget-area .widget_search .search-submit {
    padding: 0.5rem 1rem;
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-widget-area .widget_search .search-submit:hover {
    background: #4f46e5;
}

/* Tag Cloud Widget */
.footer-widget-area .widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem;
    background: #374151;
    color: #9ca3af;
    border-radius: 0.25rem;
    font-size: 0.75rem !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-widget-area .widget_tag_cloud .tagcloud a:hover {
    background: #6366f1;
    color: #ffffff;
}

/* Custom Widgets */
.footer-widget-area .widget_contact_info {
    color: #9ca3af;
}

.footer-widget-area .widget_contact_info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.footer-widget-area .widget_contact_info .contact-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #6366f1;
    margin-top: 0.125rem;
}

.footer-widget-area .widget_contact_info .contact-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Social Links Widget */
.footer-widget-area .widget_social_links .social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-widget-area .widget_social_links .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #374151;
    color: #9ca3af;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-widget-area .widget_social_links .social-link:hover {
    background: #6366f1;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-widget-area .widget_social_links .social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-widget-area .widget {
        margin-bottom: 2rem;
    }
    
    .footer-widget-area .widget-title,
    .footer-widget-area .widget h3,
    .footer-widget-area .widget h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-widget-area .widget_search .search-form {
        flex-direction: column;
    }
    
    .footer-widget-area .widget_social_links .social-links {
        justify-content: center;
    }
}

/* Widget Animation */
.footer-widget-area .widget {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.footer-widget-area .widget:nth-child(1) { animation-delay: 0.1s; }
.footer-widget-area .widget:nth-child(2) { animation-delay: 0.2s; }
.footer-widget-area .widget:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
