/* css/footer.css - Modern Design inspired by code.html */

.footer-container {
    background-color: #0f172a;
    color: #fff;
    padding: 48px 0 0;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 48px;
}

.footer-section h5 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 2;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition-base);
}

.footer-section ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition-base);
}

.social-icons a:hover {
    background: rgba(255,255,255,0.2);
}

/* Copyright */
.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* Legacy support */
.footer-info {
    text-align: center;
    line-height: 2;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    padding: 20px 0;
}

.footer-info p {
    margin: 4px 0;
}

.footer-info a {
    color: #fff;
    margin: 0 8px;
    transition: var(--transition-base);
}

.footer-info a:hover {
    text-decoration: underline;
}

/* QR Code Box */
.qrcode-box {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-base);
    padding: 8px;
}

.qrcode-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Back to Top */
.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 14px;
}

.back-to-top:hover {
    background: rgba(255,255,255,0.2);
}

.back-to-top .top-icon {
    font-size: 18px;
    font-weight: bold;
}

/* Copyright Info */
.copyright-info {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.copyright-info p {
    margin: 0;
}

/* Dark Mode Styles */
html.dark .footer-container {
    background-color: #030712;
}
