/* Sinag Fund — Custom overrides on Pico CSS */

/* Brand color (amber/gold for "Sinag" = sunlight) */
:root {
    --sinag-gold: #f59e0b;
    --sinag-gold-light: #fef3c7;
}

/* Nav brand styling */
nav .brand {
    color: var(--sinag-gold) !important;
    text-decoration: none;
}

/* Stat cards grid */
.stat-card {
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

/* Compact table buttons */
table button {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    margin: 0.1rem;
}

/* Mobile responsive tables */
@media (max-width: 768px) {
    figure { overflow-x: auto; }
    .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .grid { grid-template-columns: 1fr; }
}

/* ══ Bottom nav bar (Phase 1 — investor mobile only) ══ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pico-card-background-color);
    border-top: 1px solid var(--pico-muted-border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.25rem 0;
    z-index: 900;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--pico-muted-color);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
}

.bottom-nav-item.active {
    color: var(--sinag-gold);
    font-weight: 600;
}

.bottom-nav-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.bottom-nav-label {
    margin-top: 0.15rem;
}

/* Add padding to main so content doesn't hide behind bottom nav */
body:has(.bottom-nav) main {
    padding-bottom: 5rem;
}

/* Hide bottom nav on desktop (>768px) */
@media (min-width: 769px) {
    .bottom-nav { display: none; }
}

/* On mobile, hide top nav links for investors (bottom nav handles it) */
@media (max-width: 768px) {
    .top-nav ul:last-child li:not(:last-child) {
        /* Keep only Logout visible; bottom nav handles the rest */
    }
}

/* ══ Glossary help bottom sheet (Phase 2) ══ */
.help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    display: none;
}

.help-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.help-sheet.open {
    transform: translateY(0);
}

/* Help button — uses <span> to avoid Pico CSS button overrides */
.help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 0.25rem;
    padding: 0;
    line-height: 1;
    color: #999;
    user-select: none;
}

.help-btn:hover {
    background: var(--sinag-gold-light);
    border-color: var(--sinag-gold);
    color: var(--sinag-gold);
}

.help-q {
    color: var(--pico-muted-color);
    font-style: italic;
    font-size: 0.8rem;
}
