/* === Modern Footer Styles === */
footer {
    background: #f9fafb;
    color: #374151;
    margin-top: 80px;
    border-top: 1px solid #e5e7eb;
}

/* Dark mode footer */
[data-theme="dark"] footer {
    background: #161b22;
    color: #c9d1d9;
    border-top-color: #30363d;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    align-items: center; /* Better vertical alignment */
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111827;
}

[data-theme="dark"] .footer-section h3 {
    color: #f3f4f6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

[data-theme="dark"] .footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: #4f46e5;
}

[data-theme="dark"] .footer-links a:hover {
    color: #818cf8;
}

.footer-center {
    text-align: center;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-socials {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.3s ease;
}

[data-theme="dark"] .social-link {
    background: #21262d;
    color: #8b949e;
}

.social-link:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-3px);
}

[data-theme="dark"] .social-link:hover {
    background: #818cf8;
}

/* THIS IS THE CHANGED RULE */
.footer-support {
    text-align: left; /* Was 'right' */
}

.support-text {
    color: #6b7280;
    margin-bottom: 12px;
}

[data-theme="dark"] .support-text {
    color: #9ca3af;
}

.coffee-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFDD00;
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coffee-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 221, 0, 0.4);
}

/* Bottom section for copyright */
.footer-bottom {
    border-top: 1px solid #e5e7eb;
    text-align: center;
    padding: 20px;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: #30363d;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

[data-theme="dark"] .footer-copyright {
    color: #6e7681;
}

.footer-copyright a {
    color: #4f46e5;
    text-decoration: none;
}

[data-theme="dark"] .footer-copyright a {
    color: #818cf8;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 40px 20px 30px;
    }
    
    /* On mobile, this section will be centered like the others */
    .footer-support {
        text-align: center;
    }
}