/* ==========================================================================
   Footer Styles
   ========================================================================== */

/* Site Footer */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    margin-top: auto;
}

/* Footer Widgets Area */
.footer-widgets {
    padding: 60px 0 40px;
    border-bottom: 1px solid #34495e;
}

.footer-widgets .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widgets-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* Footer Widget Columns */
.footer-widget-col {
    min-width: 0; /* Prevent grid overflow */
}

/* Widget Styling */
.footer-widget-col .widget {
    margin-bottom: 0;
}

.footer-widget-col .widget-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
    position: relative;
}

.footer-widget-col .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #fff;
}

.footer-widget-col .widget-content {
    line-height: 1.6;
}

.footer-widget-col .widget-content p {
    margin: 0 0 15px;
    color: #bdc3c7;
}

.footer-widget-col .widget-content strong {
    color: #fff;
}

/* Footer Menu Lists */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-menu a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-menu a::before {
    content: '→';
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-menu a:hover::before {
    opacity: 1;
    transform: translateX(3px);
}

/* Recent Posts List */
.recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-posts-list li {
    padding: 12px 0;
    border-bottom: 1px solid #34495e;
}

.recent-posts-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
    font-weight: 500;
}

.recent-posts-list a:hover {
    color: #fff;
}

.recent-posts-list .post-date {
    color: #95a5a6;
    font-size: 12px;
    font-weight: normal;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bdc3c7;
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-links .social-link:hover {
    background: #007cba;
    color: #fff;
    transform: translateY(-2px);
}

.social-links .social-link i {
    font-size: 16px;
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Footer Navigation */
.footer-navigation .footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-navigation .footer-menu li {
    margin-bottom: 0;
}

.footer-navigation .footer-menu a {
    color: #bdc3c7;
    font-size: 14px;
    padding: 5px 0;
}

.footer-navigation .footer-menu a::before {
    display: none;
}

.footer-navigation .footer-menu a:hover {
    color: #fff;
    transform: none;
}

/* Site Info / Copyright */
.site-info {
    text-align: right;
    color: #95a5a6;
    font-size: 14px;
}

.site-info p {
    margin: 0;
    line-height: 1.4;
}

.site-info a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-info a:hover {
    color: #fff;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #005a87;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.back-to-top i {
    font-size: 16px;
    margin-bottom: 2px;
}

.back-to-top-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-widgets {
        padding: 50px 0 30px;
    }

    .footer-widgets-row {
        gap: 30px;
    }

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

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

@media (max-width: 768px) {
    .footer-widgets {
        padding: 40px 0 20px;
    }

    .footer-widgets-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-navigation .footer-menu {
        gap: 20px;
        justify-content: center;
    }

    .site-info {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form .form-group {
        flex-direction: column;
    }

    .newsletter-form .subscribe-btn {
        width: 100%;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    .back-to-top i {
        font-size: 14px;
    }

    .back-to-top-text {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .footer-widgets {
        padding: 30px 0 15px;
    }

    .footer-widgets-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-navigation .footer-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .newsletter-signup {
        padding: 20px;
    }

    .social-links .social-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .footer-widget-col .widget-title {
        font-size: 16px;
    }

    .back-to-top i {
        font-size: 12px;
    }

    .back-to-top-text {
        font-size: 8px;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    .site-footer {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    .footer-widgets {
        border-bottom-color: #404040;
    }

    .newsletter-form input[type="email"] {
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.15);
    }
}

/* Print Styles */
@media print {
    .site-footer,
    .back-to-top {
        display: none;
    }
}
