/**
 * Activity Hub Table of Contents (TOC)
 * 
 * Compact horizontal pill-style navigation
 * 
 * @package StateParksCPT
 * @since 2.5.0
 */

/* ==========================================================================
   TOC Container
   ========================================================================== */

.sp-activity-toc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sp-toc-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
}

/* ==========================================================================
   TOC Links - Pill Style
   ========================================================================== */

.sp-activity-toc a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sp-activity-toc a:hover {
    color: #14532d;
    background: #dcfce7;
    border-color: #86efac;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.sp-activity-toc a:active {
    transform: translateY(0);
}

/* Activity-specific theming */
.sp-activity-toc--hunting a:hover {
    color: #7c2d12;
    background: #ffedd5;
    border-color: #fb923c;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.15);
}

.sp-activity-toc--fishing a:hover {
    color: #0c4a6e;
    background: #e0f2fe;
    border-color: #38bdf8;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.15);
}

/* TOC Icon */
.sp-toc-icon {
    font-size: 0.85rem;
}

/* ==========================================================================
   Smooth Scroll for anchors
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* Account for sticky TOC when scrolling to anchor */
:target {
    scroll-margin-top: 60px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .sp-activity-toc {
        padding: 0.75rem 1rem;
        gap: 0.4rem;
    }

    .sp-toc-label {
        width: 100%;
        text-align: center;
        margin-bottom: 0.25rem;
    }

    .sp-activity-toc a {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .sp-activity-toc a {
        flex: 1 1 calc(50% - 0.4rem);
        justify-content: center;
    }
}