/* ============================================
   FusionMarketNews Footer — Premium Dark Theme
   Bloomberg/CoinDesk Inspired | Gold Accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

.fmn-footer {
    font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #000000;
    color: #e0e0e0;
    border-top: 1px solid #1a1a1a;
    position: relative;
    z-index: 10;
}

/* ---- Ticker Bar ---- */
.fmn-ticker-bar {
    background: #0a0a0a;
    border-bottom: 1px solid #1e1e1e;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 40px;
    padding: 0;
}

.fmn-ticker-label {
    background: #f5c518;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.fmn-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.fmn-ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: fmnTickerScroll 40s linear infinite;
    will-change: transform;
}

.fmn-ticker-inner:hover {
    animation-play-state: paused;
}

@keyframes fmnTickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.fmn-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 24px;
    font-size: 12px;
    border-right: 1px solid #1e1e1e;
    height: 40px;
    cursor: default;
    transition: background 0.2s ease;
}

.fmn-ticker-item:hover {
    background: #111;
}

.fmn-ticker-name {
    color: #f5c518;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.fmn-ticker-price {
    color: #ffffff;
    font-weight: 500;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.fmn-ticker-change {
    font-size: 11px;
    font-weight: 500;
}

.fmn-ticker-change.positive { color: #22c55e; }
.fmn-ticker-change.negative { color: #ef4444; }
.fmn-ticker-change.neutral  { color: #888; }

/* ---- Footer Container ---- */
.fmn-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---- Footer Body ---- */
.fmn-footer-body {
    padding: 64px 0 48px;
    border-bottom: 1px solid #1a1a1a;
}

.fmn-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.6fr;
    gap: 48px;
    align-items: start;
}

/* ---- Brand Column ---- */
.fmn-footer-logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 16px;
}

.fmn-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
}

.fmn-logo-accent {
    color: #f5c518;
}

.fmn-footer-tagline {
    font-size: 13.5px;
    line-height: 1.7;
    color: #888;
    margin: 0 0 24px;
    max-width: 280px;
}

/* ---- Social Icons ---- */
.fmn-social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fmn-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #111;
    border: 1px solid #222;
    color: #888;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fmn-social-link:hover {
    background: #f5c518;
    color: #000;
    border-color: #f5c518;
    transform: translateY(-2px);
}

/* ---- Column Headings ---- */
.fmn-col-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f5c518;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1e1e1e;
}

/* ---- Footer Links ---- */
.fmn-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fmn-footer-links li a {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
    position: relative;
}

.fmn-footer-links li a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background: #f5c518;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.fmn-footer-links li a:hover::before {
    opacity: 1;
}

/* ---- Newsletter Column ---- */
.fmn-newsletter-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: #888;
    margin: 0 0 20px;
}

.fmn-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fmn-email-input {
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 13.5px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.fmn-email-input::placeholder { color: #555; }

.fmn-email-input:focus {
    border-color: #f5c518;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.1);
}

.fmn-subscribe-btn {
    background: #f5c518;
    color: #000;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 11px 20px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

.fmn-subscribe-btn:hover {
    background: #ffd740;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 197, 24, 0.3);
}

.fmn-subscribe-btn:active {
    transform: translateY(0);
}

.fmn-newsletter-note {
    font-size: 11.5px;
    color: #555;
    margin: 8px 0 0;
}

.fmn-form-message {
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}

.fmn-form-message.success { color: #22c55e; }
.fmn-form-message.error   { color: #ef4444; }

/* ---- Footer Bottom ---- */
.fmn-footer-bottom {
    padding: 20px 0;
    background: #000;
}

.fmn-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.fmn-copyright {
    font-size: 12px;
    color: #555;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

.fmn-legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.fmn-legal-links a {
    font-size: 12px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.fmn-legal-links a:hover {
    color: #f5c518;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .fmn-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .fmn-col-brand {
        grid-column: 1 / -1;
    }
    .fmn-col-newsletter {
        grid-column: 1 / -1;
    }
    .fmn-input-group {
        flex-direction: row;
    }
    .fmn-email-input {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .fmn-footer-container {
        padding: 0 20px;
    }
    .fmn-footer-body {
        padding: 40px 0 32px;
    }
    .fmn-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .fmn-col-brand {
        grid-column: auto;
    }
    .fmn-col-newsletter {
        grid-column: auto;
    }
    .fmn-input-group {
        flex-direction: column;
    }
    .fmn-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .fmn-legal-links {
        gap: 12px;
    }
    .fmn-ticker-bar {
        height: 36px;
    }
    .fmn-ticker-item {
        height: 36px;
        padding: 0 16px;
    }
}
