/* ART SPACE Hub-and-Spoke In-Article Showcase Widget */
.article-showcase-section {
    margin: 36px 0;
    padding: 24px;
    background: #f8fafc;
    border: none;
    border-radius: 20px;
    box-shadow: none;
    box-sizing: border-box;
    position: relative;
    clear: both;
}

.article-showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

.article-showcase-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-showcase-title-row .spoke-icon {
    color: #ff3b30;
    font-size: 1.1rem;
    font-weight: 900;
}

.article-showcase-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.article-venue-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.article-venue-pill:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.article-venue-pill .arrow-hint {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Horizontal Track (Mobile Optimized) */
.article-showcase-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-y; /* Crucial: allows vertical page scroll without locking */
    padding: 4px 2px 14px 2px;
    margin: 0 -4px;
}

.article-showcase-track::-webkit-scrollbar {
    height: 6px;
}
.article-showcase-track::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 9999px;
}
.article-showcase-track::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

/* Individual Product Card */
.article-showcase-card {
    flex: 0 0 170px;
    width: 170px;
    scroll-snap-align: start;
    box-sizing: border-box;
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.article-spoke-thumb {
    width: 84px;
    height: 84px;
    aspect-ratio: 1/1;
    margin: 0 auto 10px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-spoke-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    background: #f1f5f9;
}

.role-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 6px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.spoke-card-title {
    margin: 0 0 6px 0;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.3em;
}

.spoke-card-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.spoke-card-price .unit {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.article-btn-add {
    min-height: 44px; /* Apple HIG touch target >= 44px */
    width: 100%;
    background: #005bff;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.15s ease;
}

.article-btn-add:hover {
    background: #004ed4;
}

/* Bundle Booking Button */
.article-btn-bundle {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    background: linear-gradient(135deg, #ff3b30 0%, #ff643b 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
    box-sizing: border-box;
    padding: 12px 16px;
}

.article-btn-bundle:hover {
    box-shadow: none;
}

.article-btn-bundle:active {
    transform: scale(0.98);
}

.article-bundle-notice {
    margin-top: 12px;
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
}

/* Reciprocal Spoke Block in Product Detail */
.product-spoke-articles-section {
    margin: 32px 0;
    padding: 24px;
    background: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: none;
}

.product-spoke-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.product-spoke-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.product-spoke-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.product-spoke-article-card {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-spoke-article-card:hover {
    transform: translateY(-2px);
    
    background: #ffffff;
}

.product-spoke-article-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.product-spoke-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-spoke-article-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    flex: 1 1 0%;
}

.product-spoke-article-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.product-spoke-article-meta {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.product-spoke-venue-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 0 1 auto;
    max-width: 180px;
}
.product-spoke-date-text {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .article-showcase-section {
        padding: 16px 12px;
        margin: 24px 0;
        border-radius: 16px;
    }
    .article-showcase-card {
        flex: 0 0 150px;
        width: 150px;
        padding: 10px;
    }
    .article-spoke-thumb {
        width: 70px;
        height: 70px;
    }
    .article-btn-bundle {
        font-size: 0.88rem;
        padding: 12px 10px;
    }
}


/* STAGE 1: ZERO BORDERS FOR CONTENT MODULES */
.article-showcase-section, .article-showcase-card, .product-spoke-articles-section, .product-spoke-article-card, .article-commercial-linking, .art-rec-card, .art-reviews-section {
    border: none !important;
}


/* ================================================================
   APPLE HIG DARK GRAPHITE HARMONIZATION FOR ARTICLE SPOKES
   ================================================================ */
html.dark-theme .article-showcase-section {
    background: #1c1c1e !important;
    border: none !important;
    box-shadow: none !important;
}
html.dark-theme .article-showcase-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html.dark-theme .article-showcase-title {
    color: #f2f2f7 !important;
}
html.dark-theme .article-venue-pill {
    background: rgba(10, 132, 255, 0.15) !important;
    border: none !important;
    color: #5ea0ff !important;
}
html.dark-theme .article-venue-pill:hover {
    background: rgba(10, 132, 255, 0.25) !important;
    color: #5ea0ff !important;
}
html.dark-theme .article-showcase-card {
    background: #242426 !important;
    border: none !important;
    box-shadow: none !important;
}
html.dark-theme .article-showcase-card:hover {
    box-shadow: none !important;
}
html.dark-theme .article-spoke-thumb {
    background: #1c1c1e !important;
}
html.dark-theme .role-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #aeaeb2 !important;
    border: none !important;
}
html.dark-theme .spoke-card-title {
    color: #f2f2f7 !important;
}
html.dark-theme .spoke-card-price {
    color: #f2f2f7 !important;
}
html.dark-theme .spoke-card-price .unit {
    color: #8e8e93 !important;
}
html.dark-theme .article-btn-add {
    background: #0a84ff !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}
html.dark-theme .article-btn-bundle {
    border: none !important;
    box-shadow: none !important;
}
html.dark-theme .article-bundle-notice {
    color: #8e8e93 !important;
}
html.dark-theme .article-showcase-track::-webkit-scrollbar-track {
    background: #1c1c1e !important;
}
html.dark-theme .article-showcase-track::-webkit-scrollbar-thumb {
    background: #3a3a3c !important;
}
html.dark-theme .product-spoke-articles-section {
    background: #1c1c1e !important;
    border: none !important;
    box-shadow: none !important;
}
html.dark-theme .product-spoke-title {
    color: #f2f2f7 !important;
}
html.dark-theme .product-spoke-article-card {
    background: #242426 !important;
    border: none !important;
    box-shadow: none !important;
}
html.dark-theme .product-spoke-article-card:hover {
    background: #2c2c2e !important;
    box-shadow: none !important;
}
html.dark-theme .product-spoke-article-thumb {
    background: #1c1c1e !important;
}
html.dark-theme .product-spoke-article-title {
    color: #f2f2f7 !important;
}
html.dark-theme .product-spoke-article-meta {
    color: #8e8e93 !important;
}
