/* Footer Styles */

.footer-container {
    background: var(--dark-surface, #16213E);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px 30px 40px;
    margin-top: 40px;
    position: relative;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Hide footer when sports is active */
body:has(.sports-content.active) .footer-container,
.sports-content.active ~ .footer-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -1 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    gap: 50px;
    width: 100%;
    box-sizing: border-box;
}

/* Desktop specific improvements */
@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 2fr 2fr;
        gap: 60px;
    }
    
    .footer-container {
        padding: 70px 50px 40px 50px;
    }
}

/* Help Section */
.footer-help-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-section-title {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (min-width: 1024px) {
    .footer-section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
}

.footer-help-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-help-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .footer-help-link {
        font-size: 15px;
        padding: 16px 20px;
        min-height: 52px;
    }
}

.footer-help-link:hover {
    color: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.15);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.footer-help-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}

/* Company Info Section */
.footer-company-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-company-text {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
    text-align: left;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (min-width: 1024px) {
    .footer-company-text {
        font-size: 15px;
        line-height: 2;
    }
}

/* Responsible Gaming Section */
.footer-responsible-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-responsible-title {
    font-size: 18px;
    font-weight: 700;
    color: rgba(16, 185, 129, 1);
    margin-bottom: 15px;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (min-width: 1024px) {
    .footer-responsible-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

.footer-responsible-text {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 15px;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (min-width: 1024px) {
    .footer-responsible-text {
        font-size: 15px;
        line-height: 2;
        margin-bottom: 20px;
    }
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.footer-contact-link {
    color: rgba(59, 130, 246, 1);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (min-width: 1024px) {
    .footer-contact-link {
        font-size: 15px;
        gap: 12px;
        padding: 12px 0;
    }
}

.footer-contact-link:hover {
    color: rgba(96, 165, 250, 1);
    transform: translateX(5px);
}

.footer-contact-link i {
    font-size: 14px;
}

/* Game Providers Section */
.footer-providers-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 18px;
    margin-top: 15px;
}

@media (min-width: 1024px) {
    .footer-providers-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }
}

.footer-provider-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

@media (min-width: 1024px) {
    .footer-provider-item {
        padding: 15px;
        border-radius: 14px;
    }
}

.footer-provider-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.footer-provider-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.footer-provider-item:hover img {
    filter: brightness(1.1);
}

/* Social Media Section */
.footer-social-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-social-links {
    display: flex;
    gap: 18px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
    .footer-social-links {
        gap: 20px;
        margin-top: 20px;
    }
    
    .footer-social-link {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}

.footer-social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.footer-social-link.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: #fff;
}

.footer-social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.footer-social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: #fff;
}

.footer-social-link.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
}

@media (min-width: 1024px) {
    .footer-bottom {
        margin-top: 60px;
        padding-top: 35px;
    }
    
    .footer-copyright {
        font-size: 14px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        padding: 30px 15px 100px 15px; /* Extra bottom padding for mobile nav */
        margin-top: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-help-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .footer-help-link {
        font-size: 12px;
        padding: 10px 8px;
        min-height: 50px;
    }

    .footer-providers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .footer-social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 25px 10px 100px 10px;
        margin-top: 15px;
    }

    .footer-help-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .footer-help-link {
        font-size: 11px;
        padding: 8px 6px;
        min-height: 45px;
    }

    .footer-providers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Modal Styles */
.footer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.footer-modal.active {
    display: flex;
}

.footer-modal-content {
    background: rgba(15, 15, 35, 0.98);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    backdrop-filter: blur(20px);
}

.footer-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    position: sticky;
    top: 0;
    background: rgba(15, 15, 35, 0.98);
    z-index: 1;
}

.footer-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.footer-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

.footer-modal-body {
    padding: 30px;
}

.footer-modal-body p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.footer-modal-body h4 {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 25px;
    margin-bottom: 15px;
}

.footer-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.footer-modal-body ul li {
    padding: 10px 0 10px 25px;
    position: relative;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-modal-body ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(59, 130, 246, 0.8);
    font-size: 20px;
    font-weight: 700;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .footer-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .footer-modal-header {
        padding: 20px;
    }

    .footer-modal-header h3 {
        font-size: 18px;
    }

    .footer-modal-body {
        padding: 20px;
    }
}

