/**
 * State + Activity Combination Page Styles
 * 
 * @package StateParksCPT
 * @since 2.1.0
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --sp-combo-primary: #166534;
    --sp-combo-primary-light: #22c55e;
    --sp-combo-text: #1e293b;
    --sp-combo-text-muted: #64748b;
    --sp-combo-bg: #f8fafc;
}

/* ========================================
   Main Container
   ======================================== */

/* Prevent horizontal scroll from full-bleed elements */
body.state-activity-combo-page {
    overflow-x: hidden;
}

.sp-state-activity-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Hero Section - Full Bleed
   ======================================== */
.sp-state-activity-hero {
    /* Full-bleed breakout from container */
    width: 100vw;
    margin-left: calc(-50vw + 50%);

    /* Visual styling */
    background: linear-gradient(135deg, #166534 0%, #14532d 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;

    /* Remove border-radius for full-bleed */
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 40px;
}

.sp-state-activity-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.sp-state-activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.sp-state-activity-icon svg {
    width: 24px;
    height: 24px;
    color: #fbbf24;
}

.sp-badge-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-state-activity-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.sp-state-activity-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0 0 24px 0;
}

.sp-state-activity-subtitle strong {
    color: #fbbf24;
}

/* Breadcrumbs */
.sp-state-activity-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.875rem;
}

.sp-state-activity-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sp-state-activity-breadcrumbs a:hover {
    color: white;
}

.sp-breadcrumb-sep {
    opacity: 0.5;
}

.sp-breadcrumb-current {
    color: #fbbf24;
    font-weight: 600;
}

/* ========================================
   Stats Bar
   ======================================== */
.sp-state-activity-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
}

.sp-stat-item {
    text-align: center;
}

.sp-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--sp-combo-primary);
}

.sp-stat-label {
    font-size: 0.875rem;
    color: var(--sp-combo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-stat-link {
    color: var(--sp-combo-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.sp-stat-link:hover {
    color: var(--sp-combo-primary-light);
}

/* ========================================
   Parks Section
   ======================================== */
.sp-state-activity-parks {
    margin-bottom: 60px;
}

.sp-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sp-combo-text);
    margin: 0 0 24px 0;
}

.sp-parks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.sp-park-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: visible;
    /* Allow tooltips to extend beyond card */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: all 0.25s ease;
}

.sp-park-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(22, 101, 52, 0.12);
}

.sp-park-image {
    height: 180px;
    overflow: hidden;
}

.sp-park-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sp-park-card:hover .sp-park-image img {
    transform: scale(1.05);
}

.sp-park-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.sp-park-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--sp-combo-primary);
    opacity: 0.4;
}

.sp-park-content {
    padding: 16px 20px;
}

.sp-park-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--sp-combo-text);
    margin: 0 0 4px 0;
}

.sp-park-activities {
    font-size: 0.8125rem;
    color: var(--sp-combo-text-muted);
}

/* Activity Icons in Park Cards */
.sp-park-activities-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.sp-activity-icon-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #f0fdf4;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.sp-activity-icon-sm svg {
    width: 14px;
    height: 14px;
    color: var(--sp-combo-primary);
}

.sp-park-card:hover .sp-activity-icon-sm {
    background: #dcfce7;
}

/* Tooltip for individual icons */
.sp-activity-icon-sm::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: #1e293b;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
    margin-bottom: 6px;
}

.sp-activity-icon-sm:hover::after {
    opacity: 1;
    visibility: visible;
}

/* +X Badge with hover tooltip */
.sp-activities-more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    padding: 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--sp-combo-primary);
    color: white;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sp-activities-more:hover {
    background: #14532d;
    transform: scale(1.05);
}

/* Tooltip list for remaining activities */
.sp-activities-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    min-width: 180px;
    max-width: 240px;
    background: #1e293b;
    border-radius: 10px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 200;
    margin-bottom: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Arrow for tooltip */
.sp-activities-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px;
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

.sp-activities-more:hover .sp-activities-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sp-tooltip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: white;
    white-space: nowrap;
}

.sp-tooltip-item svg {
    width: 14px;
    height: 14px;
    color: #fbbf24;
    flex-shrink: 0;
}

.sp-tooltip-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sp-no-parks {
    text-align: center;
    padding: 60px 20px;
    background: var(--sp-combo-bg);
    border-radius: 12px;
    color: var(--sp-combo-text-muted);
}

/* ========================================
   Related Links Section
   ======================================== */
.sp-state-activity-related {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 40px;
    background: var(--sp-combo-bg);
    border-radius: 16px;
    margin-bottom: 40px;
}

.sp-related-col h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--sp-combo-text);
    margin: 0 0 16px 0;
}

.sp-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-related-list li {
    margin-bottom: 8px;
}

.sp-related-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    color: var(--sp-combo-text);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.sp-related-list a:hover {
    background: var(--sp-combo-primary);
    color: white;
}

.sp-activity-mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.sp-activity-mini-icon svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .sp-state-activity-hero {
        padding: 40px 24px;
    }

    .sp-state-activity-title {
        font-size: 1.75rem;
    }

    .sp-state-activity-stats {
        flex-direction: column;
        gap: 20px;
    }

    .sp-state-activity-related {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}