/* ============================================
   AQM BD Trade — Public Theme
   Inspired by Fast Gulf Gate logistics design
   Deep Navy (#0B1A3E) + Teal (#00897B) + Orange (#FF6F00)
   Clean, minimal, professional
   ============================================ */

/* ── Google Fonts (Inter) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Top Bar ── */
.pub-top-bar {
    background: #060E24;
    padding: 10px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pub-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
.pub-top-bar .pub-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pub-tagline {
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}
.pub-lang-switch {
    display: flex;
    gap: 4px;
}
.pub-lang-btn {
    padding: 4px 12px;
    border-radius: 4px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}
.pub-lang-btn:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}
.pub-lang-btn.active {
    background: #00897B;
    color: #fff;
    border-radius: 4px;
}

/* ── Header ── */
.pub-header {
    background: #0B1A3E;
    padding: 0;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pub-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 18px 40px;
    max-width: 1400px;
    margin: 0 auto;
}
.pub-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.pub-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.pub-logo:hover .pub-logo-icon {
    transform: scale(1.05);
}
.pub-logo-text {
    display: flex;
    align-items: baseline;
    line-height: 1;
}
.pub-logo-mark {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}
.pub-logo-trade {
    font-size: 24px;
    font-weight: 300;
    color: rgba(255,255,255,0.45);
    letter-spacing: 3px;
    margin-left: 8px;
    padding-left: 10px;
    border-left: 2px solid #00897B;
}

/* ── Nav ── */
.pub-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.pub-nav-link {
    padding: 10px 20px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
}
.pub-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}
.pub-nav-link.active {
    color: #fff;
    background: rgba(0,137,123,0.15);
}
.pub-nav-accent {
    background: #FF6F00 !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 6px;
}
.pub-nav-accent:hover {
    background: #FF8F00 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,111,0,0.3);
}

/* ── Header Right ── */
.pub-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.pub-search-form {
    display: flex;
    align-items: center;
    position: relative;
}
.pub-search-input {
    width: 260px;
    padding: 10px 40px 10px 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
}
.pub-search-input::placeholder {
    color: rgba(255,255,255,0.3);
    font-weight: 400;
}
.pub-search-input:focus {
    outline: none;
    border-color: #00897B;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(0,137,123,0.15);
}
.pub-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: #00897B;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.pub-search-btn:hover {
    background: #00796B;
    transform: translateY(-50%) scale(1.05);
}
.pub-container-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    position: relative;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}
.pub-container-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: #00897B;
    color: #fff;
}
.pub-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    background: #FF6F00;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255,111,0,0.4);
    border: 2px solid #0B1A3E;
}

/* ── Footer ── */
.pub-footer {
    background: #060E24;
    color: rgba(255,255,255,0.6);
    padding: 56px 0 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.pub-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}
.pub-footer-brand {}
.pub-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.pub-logo-icon--footer svg {
    width: 32px;
    height: 32px;
}
.pub-footer-logo .pub-logo-mark {
    font-size: 20px;
    letter-spacing: 2px;
}
.pub-footer-logo .pub-logo-trade {
    font-size: 20px;
    letter-spacing: 2px;
    margin-left: 6px;
    padding-left: 8px;
}
.pub-footer-desc {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.45);
    margin-bottom: 14px;
    max-width: 420px;
}
.pub-footer-address {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
}
.pub-footer-links h4 {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.pub-footer-links a {
    display: block;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 13px;
    padding: 5px 0;
    transition: all 0.2s ease;
}
.pub-footer-links a:hover {
    color: #00897B;
    padding-left: 4px;
}
.pub-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.3px;
}

/* ── Category Filter Bar ── */
.pub-filter-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.pub-filter-link {
    padding: 16px 24px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
}
.pub-filter-link:hover {
    color: #0B1A3E;
    background: #f8fafa;
}
.pub-filter-link.active {
    color: #00897B;
    border-bottom-color: #00897B;
    font-weight: 600;
}
.pub-filter-count {
    font-size: 10px;
    color: #00897B;
    margin-left: 6px;
    font-weight: 700;
    background: rgba(0,137,123,0.08);
    padding: 2px 6px;
    border-radius: 10px;
}

/* ── Admin-Only Bar ── */
.pub-admin-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #FF6F00;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.pub-admin-bar a {
    color: #00897B;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.pub-admin-bar a:hover {
    color: #00796B;
    text-decoration: underline;
}

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

/* ── Hamburger Menu Button ── */
.pub-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
}
.pub-hamburger:hover {
    background: rgba(255,255,255,0.1);
}
.pub-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ── WhatsApp Floating Button ── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 10000;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .pub-hamburger {
        display: flex;
    }
    .pub-header-inner {
        flex-wrap: wrap;
        padding: 14px 20px;
        gap: 16px;
    }
    .pub-nav {
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 0;
        background: #0e2050;
        border-radius: 8px;
        padding: 8px 0;
    }
    .pub-nav.open {
        display: flex;
    }
    .pub-nav-link {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 0;
    }
    .pub-nav-link:hover {
        background: rgba(255,255,255,0.08);
    }
    .pub-search-input {
        width: 180px;
    }
    .pub-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .pub-filter-bar {
        padding: 0 16px;
    }
    .pub-filter-link {
        padding: 14px 18px;
        font-size: 12px;
    }
    .pub-container {
        padding: 0 20px;
    }
}

@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: 120px;
        font-size: 12px;
    }
    .pub-search-form {
        flex: 1;
    }
    .pub-container-link span:not(.pub-badge) {
        display: none;
    }
    .pub-container-link svg {
        margin: 0;
    }
    .pub-footer {
        padding: 36px 0 0;
        margin-top: 48px;
    }
    .pub-container {
        padding: 0 16px;
    }
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}
