@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

body {
    font-family: 'Google Sans', sans-serif;
    background-color: #000000;
    color: #e4e4e7;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 160px;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 3px;
}

.tab-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    border-bottom-color: #ffffff;
    color: #ffffff;
    font-weight: 700;
    background-color: #18181b;
}

.tab-btn:hover:not(.active) {
    color: #a1a1aa;
    background-color: #27272a;
}

.company-target {
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-target:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(255,255,255,0.05);
}

.company-target.priority {
    border-left: 3px solid #60a5fa; /* Blue accent for X */
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal {
    background-color: #09090b;
    color: #e4e4e7;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid #27272a;
}

.terminal-header {
    background-color: #18181b;
    border-bottom: 1px solid #27272a;
}

.landscape-card {
    transition: all 0.2s;
}

.landscape-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(255,255,255,0.05);
}

.page-layout {
    display: flex;
    gap: 0;
}

.sidebar-nav {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    align-self: flex-start;
    height: fit-content;
    padding: 16px 12px 16px 0;
}

.sidebar-inner {
    border-right: 1px solid #3f3f46;
    padding-right: 12px;
}

.sidebar-title {
    font-size: 10px;
    font-weight: 700;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 12px 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #a1a1aa;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.sidebar-link:hover {
    color: #ffffff;
    background: #27272a;
}

.sidebar-link.active {
    color: #ffffff;
    background: #3f3f46;
}

.sidebar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #52525b;
    flex-shrink: 0;
    transition: background 0.2s;
}

.sidebar-link.active .sidebar-dot {
    background: #60a5fa;
}

.main-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 1024px) {
    .sidebar-nav {
        display: none;
    }
    .page-layout {
        display: block;
    }
}

@media (max-width: 640px) {
    .page-layout {
        padding-left: 0;
        padding-right: 0;
    }

    .main-content {
        padding: 0 1rem;
    }

    /* Make company cards easier to tap */
    .company-target {
        min-height: 80px;
        padding: 12px;
    }

    /* Prevent hover lift animation from firing on touch */
    @media (hover: none) {
        .company-target:hover,
        .landscape-card:hover {
            transform: none;
            box-shadow: none;
        }
    }

    /* Tab buttons scroll naturally */
    .tab-btn {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 12px 8px;
    }

    /* Full-width search buttons on mobile */
    .search-btn {
        font-size: 0.75rem;
        padding: 10px;
    }
}

/* iOS critical fixes */
* {
    -webkit-tap-highlight-color: transparent;
}
html {
    -webkit-text-size-adjust: 100%;
}
/* Prevent iOS input zoom — must be 16px+ */
@media (max-width: 640px) {
    input, textarea, select {
        font-size: 16px !important;
    }
}
/* Momentum scrolling on iOS */
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.overflow-x-auto::-webkit-scrollbar {
    display: none;
}
/* iPhone safe area — home indicator + dynamic island */
body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-bar {
    padding-top: max(12px, env(safe-area-inset-top, 12px));
}

/* Triangle / pyramid layout — 3rd card centres below the top two on mobile */
@media (max-width: 639px) {
    .card-apex {
        grid-column: 1 / -1;
        max-width: calc(50% - 6px);
        margin-left: auto;
        margin-right: auto;
    }
}