/* BusynessProfile HTML Sitemap - Frontend */

.bpsm-sitemap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bpsm-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.25rem;
}

.bpsm-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 2rem;
}

/* Section */
.bpsm-section-block { margin-bottom: 2.5rem; }

.bpsm-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bpsm-accent, #378ADD);
}

.bpsm-section-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bpsm-section-total {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--bpsm-accent, #378ADD);
    background: #f0f6ff;
    border: 1px solid #c8dff8;
    padding: 1px 8px;
    border-radius: 20px;
    letter-spacing: 0;
}

/* Grid */
.bpsm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

/* Box card */
.bpsm-box-card {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.bpsm-box-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }

.bpsm-box-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 8px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    flex-shrink: 0;
}

.bpsm-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--bpsm-dot, #378ADD);
    flex-shrink: 0;
}

.bpsm-box-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.bpsm-count {
    font-size: 0.68rem;
    font-weight: 600;
    color: #666;
    background: #efefef;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
}

/* Search bar */
.bpsm-search-wrap {
    padding: 7px 10px 0;
    flex-shrink: 0;
}

.bpsm-search-input {
    width: 100%;
    font-size: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 5px 10px;
    background: #f9f9f9;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
}

.bpsm-search-input:focus {
    border-color: #2271b1;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.12);
}

.bpsm-search-input::placeholder { color: #bbb; }

/* Page list - scrollable, shows all */
.bpsm-page-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
    flex: 1;
}

.bpsm-page-list::-webkit-scrollbar { width: 3px; }
.bpsm-page-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.bpsm-page-item {
    padding: 5px 14px;
    font-size: 0.78rem;
    line-height: 1.5;
    border-bottom: 1px solid #f5f5f5;
}

.bpsm-page-item:last-child { border-bottom: none; }

.bpsm-page-item a {
    color: #1a6fb5;
    text-decoration: none;
    display: block;
    word-break: break-word;
}

.bpsm-page-item a:hover {
    text-decoration: underline;
    color: #0d4f8a;
}

.bpsm-pattern { color: #999; font-style: italic; }
.bpsm-empty { color: #bbb; font-style: italic; }

.bpsm-page-wrap { padding: 2rem; }

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