/* ═════════════════════════════════════════════════════════════════════════
   Trading Store & Portal Footer Styles (trading_footer.css)
   ═════════════════════════════════════════════════════════════════════════ */

.trading-footer {
    flex-shrink: 0;
    margin-top: auto;
    background-color: var(--bg-surface, #1e1f20);
    border-top: 1px solid var(--border-color, #2e3032);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

#app-content > .trading-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Mobile-first bottom clearance for floating cart bar & mobile nav */
@media (max-width: 768px) {
    .trading-footer {
        padding-top: 2.25rem;
        padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
    }
}

.trading-footer-container {
    max-width: var(--app-container-max-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .trading-footer-container {
        padding: 0 1rem;
    }
}

/* Grid Layout */
.trading-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 2.5rem;
    text-align: left;
}

@media (max-width: 991px) {
    .trading-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .trading-footer-col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .trading-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Footer Columns */
.trading-footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.trading-footer-col h4 {
    color: var(--text-primary, #e3e3e3);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trading-footer-col h4::after {
    content: '';
    display: inline-block;
    flex: 1;
    max-width: 40px;
    height: 2px;
    background: var(--accent-solid, #4285f4);
    border-radius: 2px;
    opacity: 0.6;
}

/* Brand Section */
.trading-footer-brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary, #e3e3e3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.trading-footer-brand-title i {
    color: #22c55e;
}

.trading-footer-tagline {
    color: var(--text-secondary, #b4b4b4);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}

/* Contact Buttons on Mobile/Desktop */
.trading-footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.trading-footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    background: var(--bg-main, #131314);
    border: 1px solid var(--border-color, #2e3032);
    border-radius: 10px;
    color: var(--text-primary, #e3e3e3);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    touch-action: manipulation;
    width: fit-content;
    max-width: 100%;
}

@media (max-width: 640px) {
    .trading-footer-contact-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

.trading-footer-contact-btn:hover {
    background: var(--btn-secondary-hover, #3a3c3e);
    border-color: var(--accent-solid, #4285f4);
    transform: translateY(-1px);
}

.trading-footer-contact-btn.btn-whatsapp {
    border-color: rgba(34, 197, 94, 0.35);
}

.trading-footer-contact-btn.btn-whatsapp:hover {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.trading-footer-contact-btn.btn-whatsapp i {
    color: #22c55e;
    font-size: 1.1rem;
}

.trading-footer-contact-btn.btn-email i {
    color: var(--accent-solid, #4285f4);
    font-size: 1rem;
}

/* Biosecurity & Company Reg Card */
.trading-footer-company-info {
    background: var(--bg-main, #131314);
    border: 1px dashed var(--border-color, #2e3032);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 0.78rem;
    color: var(--text-secondary, #b4b4b4);
    line-height: 1.45;
    margin-top: 0.25rem;
}

.trading-footer-company-info strong {
    color: var(--text-primary, #e3e3e3);
}

/* Nav Links */
.trading-footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 640px) {
    .trading-footer-links-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 380px) {
    .trading-footer-links-list {
        grid-template-columns: 1fr;
    }
}

.trading-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary, #b4b4b4);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.4rem 0.2rem;
    border-radius: 6px;
    transition: color 0.15s ease, transform 0.15s ease;
    touch-action: manipulation;
    line-height: 1.3;
}

.trading-footer-link:hover {
    color: var(--accent-solid, #4285f4);
    transform: translateX(3px);
}

.trading-footer-link i {
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.15s ease;
}

.trading-footer-link:hover i {
    opacity: 1;
    transform: translateX(2px);
}

/* Footer Bottom Bar */
.trading-footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color, #2e3032);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

/* Payment Badges Pill Row */
.trading-footer-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    width: 100%;
}

.trading-footer-payment-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-main, #131314);
    border: 1px solid var(--border-color, #2e3032);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary, #e3e3e3);
    white-space: nowrap;
}

.trading-footer-payment-pill i {
    font-size: 0.95rem;
}

/* Standardized White Badge for Payment Partner Logos */
.trading-footer-payment-logo-box {
    width: 38px !important;
    height: 22px !important;
    background: #ffffff !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 4px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18) !important;
}

.trading-footer-payment-logo {
    max-height: 18px !important;
    max-width: 32px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    vertical-align: middle !important;
    background: transparent !important;
}


.trading-footer-copyright {
    color: var(--text-secondary, #b4b4b4);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.5;
    opacity: 0.85;
}
