/* Footer Styles */
.footer {
    background: var(--footer-gradient);
    color: #ffffff;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6);
}

.footer-section {
    padding: 0 15px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-description {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-follow-stack {
    min-height: 0;
}

.footer-social-row {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-contact-item {
    color: #cbd5e1;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-contact-link:hover {
    color: #ffffff !important;
    opacity: 1;
}

.footer-contact-address {
    align-items: flex-start;
}

.footer-contact-address span {
    flex: 1;
    min-width: 0;
}

.footer-contact-item i,
.footer-contact-link i {
    color: #ef4444;
    width: 1.1rem;
    flex-shrink: 0;
    text-align: center;
}

.footer-contact-address i {
    margin-top: 0.15rem;
}

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

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

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 20px;
}

.footer-links a:hover::before {
    transform: translateX(5px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ef4444;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
    color: #ffffff;
}

.social-link.facebook:hover { border-color: #1877f2; box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3); }
.social-link.instagram:hover { border-color: #e4405f; box-shadow: 0 8px 25px rgba(228, 64, 95, 0.3); }
.social-link.x:hover { border-color: #e7e9ea; box-shadow: 0 8px 25px rgba(231, 233, 234, 0.15); }
.social-link.twitter:hover { border-color: #1da1f2; box-shadow: 0 8px 25px rgba(29, 161, 242, 0.3); }
.social-link.youtube:hover { border-color: #ff0000; box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3); }
.social-link.telegram:hover { border-color: #0088cc; box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3); }

/* Footer Legal */
.footer-legal a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Partners */
.partners-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.partner-logo {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.logo-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    letter-spacing: 1px;
}

/* Footer Image Section */

/* Common base; image sizes for type (.footer-img-map / .footer-img-brand) */
.footer-img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* SVG Map - scales from large source */
.footer-img-map {
    height: auto;
    max-height: 240px;
}

.footer-img-brand {
    height: clamp(96px, 22vw, 200px);
    width: auto;
    max-height: 240px;
}

.footer-img:hover {
    opacity: 1;
}

.footer-image {
    min-height: 150px;
    height: 100%;
}

.footer-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 30px 20px;
    backdrop-filter: blur(10px);
}

.footer-icon {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-placeholder p {
    color: #ffffff;
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-placeholder small {
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.quick-links .btn {
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-width: 1.5px;
}

.quick-links .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #cbd5e1;
}

.quick-links .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.quick-links .btn-outline-danger {
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.quick-links .btn-outline-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
}

.footer-copyright,
.footer-credits {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-section {
        padding: 0 5px;
        margin-bottom: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .partners-logos {
        justify-content: center;
    }
    
    .quick-links {
        justify-content: center;
    }
    
    .footer-image {
        min-height: 120px;
    }
    
    .footer-bottom .col-md-6 {
        text-align: center !important;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .footer-title {
        font-size: 1.1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .partners-logos {
        gap: 10px;
    }
    
    .footer-image {
        min-height: 100px;
    }
    
    .footer-img-map {
        max-height: 200px;
    }

    .footer-img-brand {
        height: clamp(80px, 26vw, 160px);
    }

    .footer-placeholder {
        padding: 20px 15px;
    }
    
    .footer-icon {
        font-size: 2.5rem;
    }
    
    .quick-links .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* App Download Buttons */
.app-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
}

.app-download-btn {
    display: block;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    max-width: 200px;
}

.app-download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.app-btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-btn-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.app-btn-text {
    flex-grow: 1;
}

.app-btn-small {
    font-size: 0.7rem;
    color: #cbd5e1;
    line-height: 1.2;
    margin-bottom: 2px;
}

.app-btn-large {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

/* Google Play specific styles */
.google-play-btn:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

/* App Store specific styles */
.app-store-btn:hover {
    border-color: #007AFF;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
}

/* Responsive adjustments for app buttons */
@media (max-width: 768px) {
    .app-download-buttons {
        align-items: center;
    }
    
    .app-download-btn {
        max-width: 180px;
        padding: 10px 14px;
    }
    
    .app-btn-content {
        gap: 10px;
    }
    
    .app-btn-small {
        font-size: 0.65rem;
    }
    
    .app-btn-large {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .app-download-btn {
        max-width: 160px;
        padding: 8px 12px;
    }
    
    .app-btn-content {
        gap: 8px;
    }
    
    .app-btn-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .app-btn-small {
        font-size: 0.6rem;
    }
    
    .app-btn-large {
        font-size: 0.85rem;
    }
}