/* ============================================
   AQM BD Trade — Public Theme
   Navy (#1a237e) + Orange (#ff6f00)
   Shared header, footer, and public-facing styles
   ============================================ */

/* ── Top Bar ── */
.pub-top-bar {
    background: #0d1452;
    padding: 8px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}
.pub-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}
.pub-top-bar .pub-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pub-tagline {
    font-weight: 500;
    letter-spacing: 0.3px;
}
.pub-lang-switch {
    display: flex;
    gap: 2px;
}
.pub-lang-btn {
    padding: 4px 10px;
    border-radius: 4px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    transition: all 0.2s;
}
.pub-lang-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.pub-lang-btn.active {
    background: #ff6f00;
    color: #fff;
}

/* ── Header ── */
.pub-header {
    background: #1a237e;
    padding: 0;
    position: relative;
    z-index: 100;
}
.pub-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 30px;
    max-width: 1400px;
    margin: 0 auto;
}
.pub-logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
}
.pub-logo-mark {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
}
.pub-logo-accent {
    font-size: 14px;
    font-weight: 700;
    color: #ff6f00;
    letter-spacing: 2px;
}

/* ── Nav ── */
.pub-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pub-nav-link {
    padding: 8px 18px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}
.pub-nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.pub-nav-link.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.pub-nav-accent {
    background: #ff6f00;
    color: #fff !important;
}
.pub-nav-accent:hover {
    background: #ff8f00;
}

/* ── Header Right ── */
.pub-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.pub-search-form {
    display: flex;
    align-items: center;
    position: relative;
}
.pub-search-input {
    width: 240px;
    padding: 9px 38px 9px 14px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.pub-search-input::placeholder {
    color: rgba(255,255,255,0.45);
}
.pub-search-input:focus {
    outline: none;
    border-color: #ff6f00;
    background: rgba(255,255,255,0.15);
}
.pub-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: #ff6f00;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.pub-search-btn:hover {
    background: #ff8f00;
}
.pub-container-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    position: relative;
    transition: all 0.2s;
    white-space: nowrap;
}
.pub-container-link:hover {
    background: rgba(255,255,255,0.15);
    border-color: #ff6f00;
}
.pub-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: #f44336;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Footer ── */
.pub-footer {
    background: #0d1452;
    color: rgba(255,255,255,0.75);
    padding: 48px 0 0;
    margin-top: 60px;
}
.pub-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}
.pub-footer-brand {}
.pub-footer-logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 14px;
}
.pub-footer-logo .pub-logo-mark {
    font-size: 22px;
}
.pub-footer-logo .pub-logo-accent {
    font-size: 12px;
}
.pub-footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
    max-width: 420px;
}
.pub-footer-address {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}
.pub-footer-links h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.pub-footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 0;
    transition: color 0.2s;
}
.pub-footer-links a:hover {
    color: #ff6f00;
}
.pub-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* ── Category Filter Bar ── */
.pub-filter-bar {
    background: #fff;
    border-bottom: 2px solid #e5e7eb;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pub-filter-link {
    padding: 14px 22px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}
.pub-filter-link:hover {
    color: #1a237e;
    background: #f8f9ff;
}
.pub-filter-link.active {
    color: #1a237e;
    border-bottom-color: #ff6f00;
    font-weight: 700;
}
.pub-filter-count {
    font-size: 11px;
    color: #ff6f00;
    margin-left: 4px;
    font-weight: 700;
}

/* ── Admin-Only Bar ── */
.pub-admin-bar {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #e65100;
}
.pub-admin-bar a {
    color: #1a237e;
    font-weight: 600;
    text-decoration: none;
}
.pub-admin-bar a:hover {
    text-decoration: underline;
}

/* ── Override old header/nav/footer (now using pub- classes) ── */
.top-bar, .header, .nav, .footer {
    display: none !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .pub-header-inner {
        flex-wrap: wrap;
        padding: 14px 20px;
    }
    .pub-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        gap: 2px;
    }
    .pub-nav-link {
        padding: 6px 14px;
        font-size: 12px;
    }
    .pub-search-input {
        width: 180px;
    }
    .pub-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .pub-filter-bar {
        padding: 0 16px;
    }
    .pub-filter-link {
        padding: 12px 16px;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .pub-top-bar .pub-container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .pub-header-inner {
        padding: 12px 16px;
        gap: 12px;
    }
    .pub-logo-mark {
        font-size: 22px;
    }
    .pub-header-right {
        gap: 8px;
    }
    .pub-search-input {
        width: 140px;
        font-size: 12px;
    }
    .pub-container-link span:not(.pub-badge) {
        display: none;
    }
    .pub-container-link svg {
        margin: 0;
    }
    .pub-footer {
        padding: 32px 0 0;
        margin-top: 40px;
    }
    .pub-container {
        padding: 0 16px;
    }
}
