/* fb-common.css — Shared styles for Favela Brass staff sites */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&display=swap');

:root {
    --purple: #5A0E7A;
    --purple-dark: #3E0B59;
    --purple-light: #7B2FA0;
    --yellow: #FEF100;
    --green: #62CC3C;
    --red: #E74C3C;
    --orange: #E67E22;
    --blue: #3498DB;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

/* ── Nav bar ── */
.fb-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 16px;
    height: 44px;
    font-size: 13px;
    font-weight: 500;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fb-nav::-webkit-scrollbar { display: none; }

.fb-nav a {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.fb-nav a.active {
    font-weight: 700;
}

/* Hamburger hidden on desktop */
.fb-nav-toggle { display: none; }

/* ── Header ── */
.fb-header {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 60%, var(--purple-light) 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.fb-header-logo {
    width: 50px;
    height: 50px;
}

.fb-header-text { flex: 1; }

.fb-header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--yellow);
}

.fb-header-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ── Container ── */
.fb-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ── Grid ── */
.fb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* ── Card ── */
.fb-card {
    padding: 24px;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fb-card:hover {
    transform: translateY(-2px);
}

/* ── Tabs ── */
.fb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 15px 24px;
}

.fb-tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.fb-tab-panel {
    display: none;
    padding: 30px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.fb-tab-panel.active {
    display: block;
}

/* ── Fade-in animation ── */
@keyframes fbFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fb-fade-in {
    animation: fbFadeIn 0.4s ease both;
}

/* ── Tables (shared base) ── */
.fb-table {
    width: 100%;
    border-collapse: collapse;
}

.fb-table th,
.fb-table td {
    padding: 10px 12px;
    text-align: left;
}

/* ── Footer ── */
.fb-footer {
    text-align: center;
    padding: 24px 20px;
    font-size: 12px;
}

/* ── Password overlay ── */
.fb-password-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 60%, var(--purple-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.fb-password-overlay.hidden {
    display: none;
}

.fb-password-overlay h2 {
    color: var(--yellow);
    font-size: 20px;
    font-weight: 700;
}

.fb-password-overlay p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.fb-password-overlay input {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    text-align: center;
    width: 280px;
    outline: none;
    transition: border-color 0.2s;
}

.fb-password-overlay input:focus {
    border-color: var(--yellow);
}

.fb-password-overlay input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.fb-password-overlay .error {
    color: var(--red);
    font-size: 13px;
    min-height: 20px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .fb-header {
        padding: 15px 16px;
    }
    .fb-header-title {
        font-size: 20px;
    }
    .fb-tabs {
        padding: 10px 16px;
        gap: 8px;
    }
    .fb-tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    .fb-tab-panel {
        padding: 20px 16px;
    }
    .fb-container {
        padding: 20px 12px;
    }
    .fb-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fb-nav {
        gap: 0;
        padding: 0 8px;
    }
    .fb-nav a {
        padding: 8px 8px;
        font-size: 12px;
    }
}
