/* --- [FOOTER COMPONENT STYLES] ---
  This file styles the <footer class="page-footer">.
  It uses the variables defined in 'style.css'.
*/

.page-footer {
    display: flex;
    justify-content: space-between; /* Pushes copyright and nav apart */
    align-items: center;
    flex-wrap: wrap; /* Allows items to wrap on small screens */
    
    /* Spacing */
    margin-top: var(--spacing-xl); /* Pushes it away from the content above */
    padding-top: var(--spacing-lg);
    
    /* Visual separator */
    border-top: 1px solid var(--border-color);
    
    /* Text styling */
    font-size: 0.875rem; /* 14px */
    color: var(--text-secondary);
}

.page-footer__copyright {
    padding: var(--spacing-sm) 0;
}

/* Navigation Menu */
.page-footer__menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg); /* Space between links */
    
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-footer__menu-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.page-footer__menu-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* --- [RESPONSIVENESS] --- */
/* For screens smaller than 768px (tablets/mobile) */
@media (max-width: 768px) {
    .page-footer {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center them */
        gap: var(--spacing-md);
    }

    .page-footer__nav {
        width: 100%;
    }

    .page-footer__menu {
        flex-direction: column; /* Stack links vertically */
        align-items: center;
        gap: var(--spacing-sm);
    }
}
