/* ============================================
   STORES BROWSER — Single Page with Filters
   ============================================ */

.ltc-browser {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: calc(100vh - 70px);
    overflow: hidden;
}

/* Fixed Sidebar */
.ltc-browser-sidebar {
    background: #F7F5F3;
    border-right: 1px solid #E8E4E0;
    overflow-y: auto;
    padding: 0;
}

.ltc-browser-sidebar-inner {
    padding: 24px 20px;
}

.ltc-filter-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9C9590;
    margin: 0 0 12px;
    padding: 0;
}

.ltc-filter-title-skills {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #E8E4E0;
}

.ltc-filter-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ltc-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #093266;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s ease;
    font-family: inherit;
}

.ltc-filter-btn:hover {
    background: #E8E4E0;
}

.ltc-filter-btn.active {
    background: #F7B332;
    color: #fff;
    font-weight: 600;
}

.ltc-filter-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ltc-filter-count {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.6;
}

.ltc-filter-btn.active .ltc-filter-count {
    opacity: 0.8;
}

/* Scrollable Main */
.ltc-browser-main {
    overflow-y: auto;
    padding: 0;
}

.ltc-browser-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    padding: 20px 32px 16px;
    border-bottom: 3px solid #F7B332;
}

.ltc-browser-page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #093266;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ltc-browser-result-count {
    font-size: 0.85rem;
    color: #9C9590;
    margin: 0;
}

.ltc-browser-activities {
    padding: 24px 32px 64px;
}

/* Section titles — visually distinct from page title */
.ltc-browser-section {
    margin-bottom: 32px;
}

.ltc-browser-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #F7B332;
    padding: 10px 0;
    border-bottom: 2px solid #FDF3DD;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ltc-section-icon {
    font-size: 1.1rem;
}

/* Activity accordions (reuse store-page styles but tweaked) */
.ltc-browser .ltc-activity-accordion {
    border: 1px solid #E8E4E0;
    border-radius: 8px;
    margin-bottom: 6px;
    overflow: hidden;
    background: #fff;
}

.ltc-browser .ltc-activity-accordion[open] {
    border-color: #F7B332;
    box-shadow: 0 2px 8px rgba(247, 179, 50, 0.1);
}

.ltc-browser .ltc-activity-summary {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    gap: 10px;
    user-select: none;
    transition: background 0.12s ease;
}

.ltc-browser .ltc-activity-summary::-webkit-details-marker {
    display: none;
}

.ltc-browser .ltc-activity-summary:hover {
    background: #FFF9F0;
}

.ltc-browser .ltc-activity-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    color: #093266;
}

.ltc-browser .ltc-activity-meta {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: #9C9590;
}

.ltc-browser .ltc-act-rating {
    color: #F7B332;
    font-weight: 600;
}

.ltc-browser .ltc-act-used {
    color: #2D8659;
}

.ltc-browser .ltc-accordion-arrow {
    font-size: 0.75rem;
    color: #9C9590;
    transition: transform 0.2s ease;
}

.ltc-browser .ltc-activity-accordion[open] .ltc-accordion-arrow {
    transform: rotate(180deg);
}

.ltc-browser .ltc-activity-content {
    padding: 0 16px 16px;
    border-top: 1px solid #E8E4E0;
}

.ltc-browser .ltc-activity-grades {
    font-size: 0.8rem;
    color: #9C9590;
    margin: 14px 0 10px;
}

.ltc-browser .ltc-activity-description {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
}

.ltc-browser .ltc-activity-description p {
    margin: 0 0 8px;
}

.ltc-browser .ltc-act-skills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.ltc-act-skill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #FDF3DD;
    color: #093266;
}

.ltc-browser .ltc-link-detail {
    font-size: 0.8rem;
    color: #F7B332;
    text-decoration: none;
    font-weight: 500;
}

.ltc-browser .ltc-link-detail:hover {
    text-decoration: underline;
}

.ltc-no-results {
    text-align: center;
    color: #9C9590;
    padding: 48px 0;
    font-size: 1rem;
}

/* Mobile: horizontal scrollable filter strips */
@media (max-width: 768px) {
    .ltc-browser {
        grid-template-columns: 1fr;
        height: auto;
        overflow: hidden;
        max-width: 100vw;
    }

    .ltc-browser-sidebar {
        border-right: none;
        border-bottom: 1px solid #E8E4E0;
        overflow: hidden;
        max-height: none;
    }

    .ltc-browser-sidebar-inner {
        padding: 10px 12px;
        overflow: hidden;
    }

    .ltc-filter-title {
        font-size: 0.6rem;
        margin-bottom: 6px;
    }

    .ltc-filter-title-skills {
        margin-top: 10px;
        padding-top: 10px;
    }

    .ltc-store-filters,
    .ltc-skill-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 5px;
        flex-direction: row;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        max-width: 100%;
    }

    .ltc-store-filters::-webkit-scrollbar,
    .ltc-skill-filters::-webkit-scrollbar {
        display: none;
    }

    .ltc-filter-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 16px;
        border: 1px solid #E8E4E0;
        width: auto;
    }

    .ltc-filter-btn.active {
        border-color: #F7B332;
    }

    .ltc-filter-icon {
        font-size: 0.9rem;
    }

    .ltc-filter-count {
        display: none;
    }

    .ltc-browser-main {
        overflow: visible;
    }

    .ltc-browser-header {
        position: static;
        padding: 16px;
    }

    .ltc-browser-page-title {
        font-size: 1.25rem;
    }

    .ltc-browser-activities {
        padding: 12px 16px 48px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ltc-browser .ltc-accordion-arrow {
        transition: none;
    }
}
