/* ========================================
   TRADING FOOTER - MODERN DESIGN
   Clean, Professional Trading Platform Footer
   ======================================== */

/* ===================================
   MAIN FOOTER CONTAINER
   =================================== */

.trading-footer {
    position: relative;
    background: #0e121b;
    margin-top: 80px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.trading-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.5) 50%, 
        transparent 100%);
}

/* ===================================
   MAIN FOOTER CONTENT
   =================================== */

.trading-footer-main {
    padding: 60px 0 40px;
    position: relative;
}

/* ===================================
   BRAND SECTION
   =================================== */

.footer-brand-section {
    padding-right: 20px;
}

.footer-logo-wrapper {
    margin-bottom: 20px;
}

.footer-brand-logo {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-brand-logo:hover {
    opacity: 0.8;
}

.footer-brand-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.footer-brand-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 380px;
}

/* ===================================
   STATS GRID
   =================================== */

.footer-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(17, 32, 37, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(17, 32, 37, 0.9);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.stat-icon-wrapper {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.stat-icon-wrapper i {
    font-size: 20px;
    color: #ffffff;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   FOOTER LINKS SECTION
   =================================== */

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

.footer-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, transparent);
    border-radius: 2px;
}

/* ===================================
   NAVIGATION LINKS
   =================================== */

.footer-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-links li {
    margin: 0;
}

.footer-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.footer-nav-link i {
    font-size: 12px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-nav-link span {
    transition: all 0.3s ease;
}

.footer-nav-link:hover {
    color: #3b82f6;
    padding-left: 5px;
}

.footer-nav-link:hover i {
    color: #3b82f6;
    transform: translateX(3px);
}

/* ===================================
   SOCIAL LINKS
   =================================== */

.footer-social-grid {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(17, 32, 37, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-3px);
}

.social-icon-link i,
.social-icon-link svg {
    width: 18px;
    height: 18px;
}

/* ===================================
   SECURE BADGE
   =================================== */

.footer-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    font-size: 12px;
    font-weight: 600;
}

.footer-secure-badge i {
    font-size: 16px;
}

/* ===================================
   FOOTER BOTTOM BAR
   =================================== */

.trading-footer-bottom {
    background: #0e121b;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    padding: 20px 0;
}

.footer-bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copyright {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.footer-copyright a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #60a5fa;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 12px;
}

.footer-version {
    display: inline-flex;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    color: #3b82f6;
    font-weight: 600;
}

.footer-separator {
    color: rgba(71, 85, 105, 0.5);
}

.footer-powered {
    color: #64748b;
    font-weight: 500;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1199px) {
    .trading-footer {
        margin-top: 60px;
    }

    .trading-footer-main {
        padding: 50px 0 35px;
    }

    .footer-links-section {
        padding: 0 10px;
    }
}

@media (max-width: 991px) {
    .trading-footer-main {
        padding: 45px 0 30px;
    }

    .footer-brand-section {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .footer-brand-desc {
        max-width: 100%;
    }

    .footer-section-title {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .footer-links-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .trading-footer {
        margin-top: 50px;
    }

    .trading-footer-main {
        padding: 40px 0 25px;
    }

    .footer-brand-logo img {
        max-height: 42px;
    }

    .footer-brand-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .footer-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        width: 100%;
        max-width: 300px;
    }

    .footer-section-title {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .footer-nav-link {
        font-size: 13px;
    }

    .footer-social-grid {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    }

    .footer-bottom-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-copyright {
        order: 2;
    }

    .footer-bottom-links {
        order: 1;
        flex-wrap: wrap;
        justify-content: center;
    }

    .trading-footer-bottom {
        padding: 18px 0;
    }
}

@media (max-width: 575px) {
    .footer-section-title {
        font-size: 13px;
    }

    .footer-nav-link {
        font-size: 12px;
    }

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

    .social-icon-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .footer-secure-badge {
        width: 100%;
        justify-content: center;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .footer-bottom-links {
        font-size: 11px;
    }

    .footer-links-section {
        padding: 0;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(71, 85, 105, 0.3) 50%, 
        transparent 100%);
    margin: 30px 0;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .trading-footer {
        background: white;
        margin-top: 40px;
        border-top: 2px solid #ddd;
    }

    .trading-footer-main {
        padding: 30px 0 20px;
    }

    .footer-brand-desc,
    .footer-nav-link,
    .footer-copyright {
        color: #000;
    }

    .footer-section-title {
        color: #000;
    }

    .stat-card,
    .footer-social-grid,
    .footer-secure-badge {
        display: none;
    }

    .trading-footer-bottom {
        background: #f5f5f5;
        border-top: 1px solid #ddd;
    }

    .footer-bottom-links {
        display: none;
    }
}

/* ===================================
   HOVER ENHANCEMENTS
   =================================== */

@media (hover: hover) {
    .stat-card,
    .footer-nav-link,
    .social-icon-link {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* ===================================
   HIGH CONTRAST MODE
   =================================== */

@media (prefers-contrast: high) {
    .trading-footer {
        border-top: 2px solid #3b82f6;
    }

    .footer-nav-link,
    .social-icon-link {
        border-width: 2px;
    }

    .footer-section-title {
        border-bottom: 2px solid #3b82f6;
    }
}

/* ===================================
   DARK MODE OVERRIDE
   =================================== */

[data-theme="dark"] .trading-footer {
    background: #112025;
}

[data-theme="light"] .trading-footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
    border-top-color: rgba(203, 213, 225, 0.5);
}

[data-theme="light"] .footer-brand-desc,
[data-theme="light"] .footer-nav-link,
[data-theme="light"] .footer-copyright,
[data-theme="light"] .footer-powered {
    color: #475569;
}

[data-theme="light"] .footer-section-title,
[data-theme="light"] .stat-number {
    color: #ffffff;
}

[data-theme="light"] .stat-card,
[data-theme="light"] .social-icon-link {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(203, 213, 225, 0.5);
}

[data-theme="light"] .trading-footer-bottom {
    background: #0e121b;
    border-top-color: rgba(203, 213, 225, 0.5);
}
