/* styles/footer.css */
footer {
    background-image: url('/assets/background/background.jpg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    color: #ccc; /* Light grey text color */
    padding: 100px 20px 0 20px; /* Top padding for spacing */
    font-family: var(--font-primary);
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.85); /* Dark overlay for readability */
    backdrop-filter: blur(2px);
    z-index: 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    position: relative;
}

.footer-left, .footer-right {
    flex: 1;
    min-width: 300px; /* Ensures readability on smaller flex layouts */
    margin-bottom: 20px;
}

.footer-left .logo img {
    width: 200px; /* Adjust as needed */
    margin-bottom: 20px;
}

.footer-left .address p {
    margin: 5px 0;
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-socials {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 280px;
}

/* Remove old social icon styles */
/*
.footer-socials a .social-icon {
    width: 32px; 
    height: 32px;
    margin-right: 10px;
    fill: currentColor; 
    transition: opacity 0.3s ease;
}

.footer-socials a:hover .social-icon {
    opacity: 0.7;
}
*/

/* New styles for footer social links (<a> tags as cards) */
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.footer-socials a:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* New styles for social icons within the cards */
.footer-socials a .social-icon {
    width: 35%;
    height: 35%;
    fill: rgba(255, 255, 255, 0.7);
    transition: all 0.4s ease;
    position: relative;
    margin-right: 0;
}

.footer-socials a:hover .social-icon {
    fill: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
    opacity: 1; /* Ensure full opacity on hover */
}

/* Brand-specific hover effects for footer social links */
.footer-socials a[data-link-key="youtube"]:hover { 
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.3);
}

.footer-socials a[data-link-key="discord"]:hover { 
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.3);
}

.footer-socials a[data-link-key="twitter"]:hover { 
    background: rgba(29, 161, 242, 0.15);
    border-color: rgba(29, 161, 242, 0.3);
}

.footer-socials a[data-link-key="instagram"]:hover { 
    background: rgba(245, 96, 64, 0.15); /* Adjusted to match typical Instagram gradient feel if possible, or a solid representative color */
    border-color: rgba(245, 96, 64, 0.3);
}

.footer-socials a[data-link-key="facebook"]:hover { 
    background: rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.3);
}

.footer-socials a[data-link-key="steam"]:hover { 
    background: rgba(102, 192, 244, 0.15); /* Steam's blue is often darker, this is from overlay */
    border-color: rgba(102, 192, 244, 0.3);
}

/* Active state for footer social links */
.footer-socials a:active {
    transform: translateY(-3px) scale(0.98);
    transition: all 0.1s ease;
}

/* Focus state for accessibility for footer social links */
.footer-socials a:focus-visible { /* Using focus-visible for better accessibility */
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.footer-right h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #fff;
}

.footer-right .form-group {
    margin-bottom: 15px;
}

.footer-right input[type="email"],
.footer-right textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box;
}

.footer-right textarea {
    resize: vertical;
    min-height: 200px;
    height: 200px;
    flex-grow: 1;
}

.footer-right button,
.footer-right a#sendEmailBtn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border-radius: 5px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.footer-right button:hover,
.footer-right a#sendEmailBtn:hover {
    background-color: var(--primary-color-dark, #e85a5a);
}

/* Center align footer-left on smaller screens */
@media (max-width: 768px) {
    .footer-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.footer-bottom {
    text-align: center;
    width: 100%;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #444; /* Separator line */
    font-size: 0.8em;
    position: relative;
}
