/* css/footer.css - Footer styles */

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2.5rem 0; /* Top padding > bottom padding */
    text-align: center;
    margin-top: 4rem; /* Space above the footer */
    position: relative; /* For pseudo-elements */
    z-index: 10; /* Ensure footer is above background elements */
    border-top: 1px solid var(--footer-border); /* Separator line */
}

/* Subtle dot pattern background */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--secondary) 0.5px, transparent 0.5px);
    background-size: 20px 20px; /* Size of the dot grid */
    opacity: 0.1; /* Very subtle */
    pointer-events: none; /* Doesn't interfere with clicks */
    z-index: -1; /* Behind footer content */
}

.footer-content {
    /* Layout managed in layout.css */
    /* display: flex; flex-direction: column; align-items: center; gap: 2rem; */
    /* position: relative; z-index: 2; */
}

.footer-links {
    /* Layout managed in layout.css */
    /* display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; */
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 12px; /* Clickable area */
    border-radius: 8px;
}

.footer-links a:hover {
    color: var(--primary);
    background-color: var(--footer-link-hover-bg); /* Subtle background on hover */
    transform: translateY(-3px); /* Slight lift effect */
}

.social-links {
    /* Layout managed in layout.css */
    /* display: flex; gap: 1.3rem; */
}

.social-links a {
    color: var(--footer-text);
    font-size: 1.4rem; /* Icon size */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    width: 45px; /* Circle size */
    height: 45px;
    /* line-height: 45px; -- Replaced by flex centering */
    border: 1px solid var(--border-color); /* Use main border color for consistency */
    border-radius: 50%; /* Circular shape */
    display: flex; /* Use flexbox for centering */
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Ensure no underline */
}

.social-links a:hover {
    transform: translateY(-6px) scale(1.15); /* Lift and scale effect */
    color: white; /* Icon color change */
    background: var(--primary); /* Background color change */
    border-color: var(--primary); /* Border matches background */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Shadow effect */
}

/* Specific dark theme hover adjustment if needed */
html[data-theme='light'] .social-links a {
    border-color: var(--border-color-light); /* Ensure correct border in light mode */
}
html[data-theme='light'] .social-links a:hover {
    box-shadow: var(--shadow-md-light); /* Use theme-specific shadow */
}

/* Copyright Text */
footer p {
    font-size: 0.9rem;
    margin-top: 1.8rem; /* Space above the copyright */
    opacity: 0.8;
    position: relative; /* Ensure it's above pseudo-elements if needed */
    color: var(--text-muted); /* Use muted text color */
}

/* Dynamic year span */
#current-year {
    /* No specific styles needed, inherits from paragraph */
}

/* Note: Footer responsiveness (like stacking links) is handled in responsive.css */