/**
 * Footer Styles
 *
 * Minimal and modern styling for footer
 *
 * @package Nila
 * @since 1.0.0
 */

/* ============================================
   Main Footer
   ============================================ */
   .site-footer {
    background: transparent;
    border-top: 1px solid #e5e5e5;
    padding: 0;
    margin-top: 60px;
}

/* ============================================
   Footer Widgets
   ============================================ */
.footer-widgets {
    padding: 60px 0;
    border-bottom: 1px solid #e5e5e5;
}

.footer-widgets .container {
    padding: 0 15px;
}

.footer-widgets .row {
    margin: 0;
}

.footer-column {
    padding: 0 15px;
}

/* ============================================
   Footer Widgets
   ============================================ */
.footer-widgets .widget {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 30px;
    border: none;
}

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

.footer-widgets .widget-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

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

.footer-widgets .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.footer-widgets .widget ul li:last-child {
    border-bottom: none;
}

.footer-widgets .widget ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
    display: block;
}

.footer-widgets .widget ul li a:hover {
    color: #667eea;
}

/* ============================================
   Footer Contact Info Widget
   ============================================ */
.footer-widgets .nila-contact-info-widget-content {
    padding: 0;
}

.footer-widgets .nila-contact-info-widget-content .nila-contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.footer-widgets .nila-contact-info-widget-content .nila-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f5f5f5;
    transition: transform 0.2s ease;
}

.footer-widgets .nila-contact-info-widget-content .nila-contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.footer-widgets .nila-contact-info-widget-content .nila-contact-info-item:hover {
    transform: translateX(3px);
}

.footer-widgets .nila-contact-info-widget-content .contact-info-icon {
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.footer-widgets .nila-contact-info-widget-content .nila-contact-info-item:hover .contact-info-icon {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.footer-widgets .nila-contact-info-widget-content .contact-info-icon i {
    color: #667eea;
    font-size: 16px;
    transition: color 0.2s ease;
}

.footer-widgets .nila-contact-info-widget-content .nila-contact-info-item:hover .contact-info-icon i {
    color: #fff;
}

.footer-widgets .nila-contact-info-widget-content .contact-info-content {
    flex: 1;
}

.footer-widgets .nila-contact-info-widget-content .contact-info-content strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 0px;
    font-weight: 600;
}

.footer-widgets .nila-contact-info-widget-content .contact-info-content a,
.footer-widgets .nila-contact-info-widget-content .contact-info-content span {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.6;
}

.footer-widgets .nila-contact-info-widget-content .contact-info-content a:hover {
    color: #667eea;
}

.footer-widgets .nila-contact-info-widget-content .nila-contact-social {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.footer-widgets .nila-contact-info-widget-content .nila-social-title {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widgets .nila-contact-info-widget-content .nila-social-networks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-widgets .nila-contact-info-widget-content .nila-social-network-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.footer-widgets .nila-contact-info-widget-content .nila-social-network-link:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.footer-widgets .nila-contact-info-widget-content .nila-social-network-link i {
    font-size: 16px;
}

/* Horizontal Layout in Footer */
.footer-widgets .nila-contact-info-widget-content.nila-contact-info-horizontal .nila-contact-info-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.footer-widgets .nila-contact-info-widget-content.nila-contact-info-horizontal .nila-contact-info-item {
    flex-direction: column;
    text-align: center;
    padding-bottom: 0;
    border-bottom: none;
    border-right: 1px solid #f5f5f5;
    padding-right: 20px;
}

.footer-widgets .nila-contact-info-widget-content.nila-contact-info-horizontal .nila-contact-info-item:last-child {
    border-right: none;
    padding-right: 0;
}

.footer-widgets .nila-contact-info-widget-content.nila-contact-info-horizontal .contact-info-icon {
    margin: 0 auto 10px;
}

/* ============================================
   Footer Text Widget
   ============================================ */
.footer-widgets .widget_text {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

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

/* ============================================
   Footer Search Widget
   ============================================ */
.footer-widgets .widget_search .search-form {
    display: flex;
    gap: 8px;
}

.footer-widgets .widget_search .search-field {
    flex: 1;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease;
    background: #fff;
}

.footer-widgets .widget_search .search-field:focus {
    border-color: #1a1a1a;
}

.footer-widgets .widget_search .search-submit {
    padding: 10px 20px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.footer-widgets .widget_search .search-submit:hover {
    background: #667eea;
}

/* ============================================
   Footer Recent Posts Widget
   ============================================ */
.footer-widgets .widget_recent_entries ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-widgets .widget_recent_entries ul li a {
    flex: 1;
}

.footer-widgets .widget_recent_entries .post-date {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 4px;
}

/* Nila Recent Posts Widget */
.footer-widgets .nila-recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets .nila-recent-post-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.footer-widgets .nila-recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.footer-widgets .nila-recent-post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.footer-widgets .nila-recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer-widgets .nila-recent-post-content {
    flex: 1;
}

.footer-widgets .nila-recent-post-title {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.footer-widgets .nila-recent-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-widgets .nila-recent-post-title a:hover {
    color: #667eea;
}

.footer-widgets .nila-recent-post-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-widgets .nila-recent-post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-widgets .nila-recent-post-meta i {
    font-size: 11px;
}

.footer-widgets .nila-recent-post-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-top: 6px;
}

/* Nila Popular Posts Widget */
.footer-widgets .nila-popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets .nila-popular-post-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.footer-widgets .nila-popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.footer-widgets .nila-popular-post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.footer-widgets .nila-popular-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer-widgets .nila-popular-post-content {
    flex: 1;
}

.footer-widgets .nila-popular-post-title {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.footer-widgets .nila-popular-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-widgets .nila-popular-post-title a:hover {
    color: #667eea;
}

.footer-widgets .nila-popular-post-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-widgets .nila-popular-post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-widgets .nila-popular-post-meta i {
    font-size: 11px;
}

/* ============================================
   Footer Categories Widget
   ============================================ */
.footer-widgets .widget_categories ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-widgets .widget_categories .count {
    font-size: 12px;
    color: #999;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

/* ============================================
   Footer Tag Cloud Widget
   ============================================ */
.footer-widgets .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-widgets .tagcloud a {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px !important;
    color: #666;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.footer-widgets .tagcloud a:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* ============================================
   Footer Social Icons Widget
   ============================================ */
.footer-widgets .nila-social-icons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets .nila-social-icon-item {
    margin: 0;
    padding: 0;
}

.footer-widgets .nila-social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.footer-widgets .nila-social-icon-link:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.footer-widgets .nila-social-icon-link i {
    font-size: 16px;
}

/* ============================================
   Footer Recent Posts Widget
   ============================================ */
.footer-widgets .widget_recent_entries ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.footer-widgets .widget_recent_entries ul li:last-child {
    border-bottom: none;
}

.footer-widgets .widget_recent_entries ul li a {
    flex: 1;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
    line-height: 1.5;
}

.footer-widgets .widget_recent_entries ul li a:hover {
    color: #667eea;
}

.footer-widgets .widget_recent_entries .post-date {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 4px;
}

/* Nila Recent Posts Widget */
.footer-widgets .nila-recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets .nila-recent-post-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.footer-widgets .nila-recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.footer-widgets .nila-recent-post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.footer-widgets .nila-recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer-widgets .nila-recent-post-content {
    flex: 1;
}

.footer-widgets .nila-recent-post-title {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.footer-widgets .nila-recent-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-widgets .nila-recent-post-title a:hover {
    color: #667eea;
}

.footer-widgets .nila-recent-post-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-widgets .nila-recent-post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-widgets .nila-recent-post-meta i {
    font-size: 11px;
}

.footer-widgets .nila-recent-post-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-top: 6px;
}

/* ============================================
   Footer Popular Posts Widget
   ============================================ */
.footer-widgets .widget_nila_popular_posts ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.footer-widgets .widget_nila_popular_posts ul li:last-child {
    border-bottom: none;
}

.footer-widgets .widget_nila_popular_posts ul li a {
    flex: 1;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
    line-height: 1.5;
}

.footer-widgets .widget_nila_popular_posts ul li a:hover {
    color: #667eea;
}

/* ============================================
   Footer Ad Banner Widget
   ============================================ */
.footer-widgets .widget_nila_ad_banner {
    text-align: center;
}

.footer-widgets .widget_nila_ad_banner .ad-banner-image {
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.footer-widgets .widget_nila_ad_banner .ad-banner-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Footer Bottom
   ============================================ */
.footer-bottom {
    padding: 30px 0;
    background: transparent;
    border-top: 1px solid #e5e5e5;
}

.footer-bottom .container {
    padding: 0 15px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.copyright a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.copyright a:hover {
    color: #667eea;
}

.theme-credit {
    margin-left: 15px;
    font-size: 12px;
    color: #999;
}

.theme-credit a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.theme-credit a:hover {
    color: #667eea;
}

/* ============================================
   Footer Navigation
   ============================================ */
.footer-navigation {
    margin: 0;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: #667eea;
}

/* ============================================
   Footer Social Icons
   ============================================ */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.footer-social .social-icon:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.footer-social .social-icon i {
    font-size: 16px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .footer-column {
        margin-bottom: 40px;
    }
    
    .footer-column:last-child {
        margin-bottom: 0;
    }
    
    .footer-widgets .nila-contact-info-widget-content.nila-contact-info-horizontal .nila-contact-info-list {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets .nila-contact-info-widget-content.nila-contact-info-horizontal .nila-contact-info-item {
        border-right: none;
        border-bottom: 1px solid #f5f5f5;
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .footer-widgets .nila-contact-info-widget-content.nila-contact-info-horizontal .nila-contact-info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .footer-widgets {
        padding: 40px 0;
    }
    
    .footer-column {
        padding: 0 10px;
        margin-bottom: 35px;
    }
    
    .footer-bottom {
        padding: 25px 0;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .copyright {
        font-size: 12px;
    }
    
    .theme-credit {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .footer-menu {
        justify-content: center;
        gap: 15px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ============================================
   RTL Support
   ============================================ */
.rtl .footer-widgets .nila-contact-info-widget-content .nila-contact-info-item:hover {
    transform: translateX(-3px);
}

.rtl .footer-widgets .nila-contact-info-widget-content.nila-contact-info-horizontal .nila-contact-info-item {
    border-right: none;
    border-left: 1px solid #f5f5f5;
    padding-right: 0;
    padding-left: 20px;
}

.rtl .footer-widgets .nila-contact-info-widget-content.nila-contact-info-horizontal .nila-contact-info-item:last-child {
    border-left: none;
    padding-left: 0;
}

.rtl .theme-credit {
    margin-left: 0;
    margin-right: 15px;
}

