/*
 * The Perfect Poll — Shared Quickbars
 */

/* ================================================================
   ADMIN QUICKBAR
   ================================================================ */
.pp-admin-mobile-menu {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
}

.pp-admin-menu-toggle {
    width: 100%;
    border: 1px solid #d7dde5;
    background: #0A1F44;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 900;
}

/* Desktop Admin navigation SHOULD wrap for quick access. */
.pp-admin-quickbar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    align-items: center !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    white-space: normal !important;
}

.pp-admin-quickbar a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

/* Owner-only destructive/maintenance tools. */
.pp-admin-quickbar a.admin-danger-link,
a.admin-danger-link {
    background: #111827 !important;
    color: #ffffff !important;
    border-color: #111827 !important;
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.pp-admin-quickbar a.admin-danger-link:hover,
a.admin-danger-link:hover {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

@media (max-width: 768px) {
    .pp-admin-mobile-menu {
        display: block;
    }

    .pp-admin-quickbar {
        display: none !important;
        flex-direction: column;
        align-items: stretch !important;
        padding: 0.75rem 1rem;
    }

    .pp-admin-quickbar.open {
        display: flex !important;
    }

    .pp-admin-quickbar a {
        width: 100%;
        text-align: center;
        border-radius: 12px;
        padding: 0.7rem 1rem;
    }
}

/* ================================================================
   LEAGUE QUICKBAR
   ================================================================ */
.pp-league-mobile-menu {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
}

.pp-league-menu-toggle {
    width: 100%;
    border: 1px solid #d7dde5;
    background: #0A1F44;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 900;
}

.pp-league-quickbar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    align-items: center !important;
    overflow-x: visible !important;
    white-space: normal !important;
}

.pp-league-quickbar a {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .pp-league-mobile-menu {
        display: block;
    }

    .pp-league-quickbar {
        display: none !important;
        flex-direction: column;
        align-items: stretch !important;
        padding: 0.75rem 1rem;
    }

    .pp-league-quickbar.open {
        display: flex !important;
    }

    .pp-league-quickbar a {
        width: 100%;
        text-align: center;
        border-radius: 12px;
        padding: 0.7rem 1rem;
    }
}

/* ================================================================
   TESTING QUICKBAR
   ================================================================ */
.pp-testing-mobile-menu {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
}

.pp-testing-menu-toggle {
    width: 100%;
    border: 1px solid #d7dde5;
    background: #7c2d12;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 900;
}

.pp-testing-menu-wrap {
    background: #fff7ed;
    border-bottom: 2px solid #fed7aa;
    padding: 0.9rem 1.25rem;
}

.pp-testing-menu-section + .pp-testing-menu-section {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #fed7aa;
}

.pp-testing-menu-label {
    color: #9a3412;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 900;
    margin-bottom: 0.45rem;
}

.pp-testing-quickbar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.65rem !important;
    align-items: center !important;
    overflow-x: visible !important;
    white-space: normal !important;
    border-bottom: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

.pp-testing-quickbar a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    border-color: #fdba74 !important;
    color: #7c2d12 !important;
    background: #ffffff !important;
}

.pp-testing-quickbar a:hover {
    color: #c2410c !important;
    border-color: #c2410c !important;
    background: #ffedd5 !important;
}

.pp-testing-league-quickbar a {
    border-color: #bfdbfe !important;
    color: #0A1F44 !important;
}

.pp-testing-league-quickbar a:hover {
    border-color: #2563eb !important;
    color: #2563eb !important;
    background: #eff6ff !important;
}

@media (max-width: 768px) {
    .pp-testing-mobile-menu {
        display: block;
    }

    .pp-testing-menu-wrap {
        display: none;
        padding: 0.75rem 1rem;
    }

    .pp-testing-menu-wrap.open {
        display: block;
    }

    .pp-testing-quickbar {
        flex-direction: column;
        align-items: stretch !important;
    }

    .pp-testing-quickbar a {
        width: 100% !important;
        text-align: center;
        border-radius: 12px;
        padding: 0.7rem 1rem;
    }
}

