/* ═══ AgentChain Shared Navigation & Footer ═══ */

/* Top Nav Bar */
.ac-topnav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ac-topnav * { box-sizing: border-box; margin: 0; padding: 0; }
.ac-topnav-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: 60px;
}
.ac-topnav-logo {
    font-size: 1.15rem; font-weight: 800; color: #f0f0f8;
    text-decoration: none; display: flex; align-items: center; gap: 8px;
    flex-shrink: 0;
}
.ac-topnav-logo:hover { color: #f0f0f8; }
.ac-topnav-logo .ac-accent { color: #00d4ff; }
.ac-topnav-links {
    display: flex; align-items: center; gap: 4px;
    list-style: none;
}
.ac-topnav-links a {
    color: #9494b8; font-size: 0.85rem; font-weight: 500;
    text-decoration: none; padding: 6px 12px; border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.ac-topnav-links a:hover { color: #f0f0f8; background: rgba(255,255,255,0.04); }
.ac-topnav-links a.ac-active {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.08);
}
.ac-topnav-right {
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
}
.ac-btn-connect {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    color: #000 !important;
    border: none; border-radius: 8px;
    font-family: inherit; font-size: 0.82rem; font-weight: 700;
    cursor: pointer; text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.ac-btn-connect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}
.ac-net-badge {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; color: #00ff88;
}
.ac-net-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    animation: ac-pulse 2s ease infinite;
}
@keyframes ac-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Mobile hamburger */
.ac-hamburger {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 32px; height: 32px;
    position: relative; padding: 0;
    flex-shrink: 0;
}
.ac-hamburger span {
    display: block; width: 22px; height: 2px;
    background: #f0f0f8;
    position: absolute; left: 5px;
    transition: all 0.3s ease;
    border-radius: 1px;
}
.ac-hamburger span:nth-child(1) { top: 8px; }
.ac-hamburger span:nth-child(2) { top: 15px; }
.ac-hamburger span:nth-child(3) { top: 22px; }
.ac-hamburger.open span:nth-child(1) { transform: rotate(45deg); top: 15px; }
.ac-hamburger.open span:nth-child(2) { opacity: 0; }
.ac-hamburger.open span:nth-child(3) { transform: rotate(-45deg); top: 15px; }

/* Mobile menu */
.ac-mobile-menu {
    display: none;
    position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: rgba(5, 5, 8, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 24px;
    overflow-y: auto;
}
.ac-mobile-menu.open { display: flex; flex-direction: column; gap: 4px; }
.ac-mobile-menu a {
    display: block; padding: 14px 16px;
    color: #9494b8; font-size: 1rem; font-weight: 500;
    text-decoration: none; border-radius: 12px;
    transition: all 0.2s;
}
.ac-mobile-menu a:hover, .ac-mobile-menu a.ac-active {
    color: #00d4ff; background: rgba(0, 212, 255, 0.06);
}
.ac-mobile-menu .ac-mobile-divider {
    height: 1px; background: rgba(255,255,255,0.06);
    margin: 8px 0;
}
.ac-mobile-menu .ac-btn-connect {
    margin-top: 12px; text-align: center; justify-content: center;
    padding: 14px;
}

@media (max-width: 900px) {
    .ac-topnav-links { display: none; }
    .ac-hamburger { display: block; }
    .ac-net-badge { display: none; }
}
@media (max-width: 500px) {
    .ac-topnav-inner { padding: 0 16px; }
}

/* ═══ Shared Footer ═══ */
.ac-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 5, 8, 0.6);
    padding: 48px 0 32px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #9494b8;
}
.ac-footer * { box-sizing: border-box; margin: 0; padding: 0; }
.ac-footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.ac-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.ac-footer-brand .ac-footer-logo {
    font-size: 1.2rem; font-weight: 800; color: #f0f0f8;
    margin-bottom: 12px;
}
.ac-footer-brand p {
    font-size: 0.85rem; color: #5e5e80; line-height: 1.6;
    margin-bottom: 16px;
}
.ac-footer-socials {
    display: flex; gap: 12px;
}
.ac-footer-socials a {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #9494b8; text-decoration: none;
    transition: all 0.2s;
}
.ac-footer-socials a:hover {
    color: #00d4ff; border-color: rgba(0,212,255,0.3);
    background: rgba(0,212,255,0.06);
}
.ac-footer-col h4 {
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: #5e5e80; margin-bottom: 16px;
}
.ac-footer-col a {
    display: block; padding: 4px 0;
    color: #9494b8; text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.ac-footer-col a:hover { color: #00d4ff; }
.ac-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.ac-footer-status {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem;
}
.ac-footer-status .ac-status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
    animation: ac-pulse 2s ease infinite;
}
.ac-footer-copy {
    font-size: 0.75rem; color: #5e5e80;
}
@media (max-width: 768px) {
    .ac-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .ac-footer-bottom {
        flex-direction: column; text-align: center;
    }
}
@media (max-width: 500px) {
    .ac-footer-grid { grid-template-columns: 1fr; }
}
