/* Footer Styles */
.main-footer {
    background: #0a0a1a;
    padding: 4rem 0 0; /* Removed bottom padding to eliminate gap */
    color: #a0a0ff;
    position: relative;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    z-index: 10;
    margin-top: auto; /* Push footer to bottom */
}

/* Ensure the body and html take full height */
html, body {
    height: 100%;
    margin: 0;
}

/* Make sure the main content pushes footer to bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto; /* This will make the content take up all available space */
    width: 100%;
    margin: 0; /* Remove any default margins */
    padding: 0; /* Remove any default padding */
}

.footer-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.footer-brand {
    padding: 0;
    vertical-align: top;
    width: 35%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.2;
}

.footer-tagline {
    color: #cbd5e1;
    margin: 1rem 0;
    line-height: 1.5;
}

.social-links {
    margin: 1.5rem 0 0;
}

.social-links td {
    padding: 0 0.5rem 0 0;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    color: #fff;
    transform: translateY(-3px);
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.social-icon i {
    font-size: 1.1rem;
}

/* Footer sections */
.footer-section {
    vertical-align: top;
    padding: 0 0.5rem;
}

.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.5rem;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.75rem;
    padding: 0;
}

.footer-nav a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: #8b5cf6;
    transform: translateX(4px);
}

/* Footer bottom section */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-bottom table {
    width: 100%;
}

.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    text-align: right;
}

.footer-legal a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-legal a:hover {
    color: #8b5cf6;
}

.divider {
    color: rgba(255, 255, 255, 0.2);
    padding: 0 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .footer-table {
        display: block;
    }
    
    .footer-table tbody {
        display: block;
    }
    
    .footer-table tr {
        display: block;
        margin-bottom: 2rem;
    }
    
    .footer-table td {
        display: block;
        width: 100% !important;
        padding: 0.5rem 0 !important;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .footer-heading::after {
        left: 0 !important;
        transform: none !important;
    }
    
    .footer-legal {
        text-align: left;
        margin-top: 1rem;
    }
    
    .footer-bottom td {
        text-align: left !important;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .footer-section {
        width: 50%;
        float: left;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .footer-section:nth-child(2n+1) {
        clear: both;
    }
}

@media (max-width: 480px) {
    .footer-legal {
        display: block;
    }
    
    .footer-legal a {
        display: block;
        margin: 0.5rem 0;
    }
    
    .divider {
        display: none;
    }
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--gray-500);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    color: var(--gray-400);
    transform: translateY(-3px);
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Game Notice Styles */
.coming-soon-notice {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid #8b5cf6;
    padding: 12px 15px;
    margin: 15px 0 20px;
    border-radius: 4px;
}

.coming-soon-notice .badge {
    background: #8b5cf6;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.coming-soon-notice p {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.95em;
}

.release-notice {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

.release-notice p {
    margin: 5px 0;
    color: #cbd5e1;
}

.release-notice p:first-child {
    color: #8b5cf6;
    font-weight: 600;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-logo {
        margin-bottom: 0;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-end;
    }
}
