/**
 * Zorotan Theme - Detail Pages Styles
 * 
 * Styles specific to detail pages including:
 * - Common Detail Layout
 * - Event Detail Pages
 * - Article Detail Pages
 * - Release Detail Pages
 * - Sidebar Components
 * - Navigation Elements
 * 
 * @package Zorotan
 * @version 1.0.0
 */

/* ========================================
   1. COMMON DETAIL LAYOUT
   ======================================== */

.detail-page {
    max-width: 1100px;
    margin: 0 auto;
}

.detail-header {
    margin-bottom: calc(var(--spacing-unit) * 8);
    text-align: center;
    position: relative;
    padding: calc(var(--spacing-unit) * 6) 0;
}

.detail-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.detail-category {
    margin-bottom: calc(var(--spacing-unit) * 3);
    display: inline-block;
}

.detail-title {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: calc(var(--spacing-unit) * 3) 0 calc(var(--spacing-unit) * 2) 0;
    line-height: 1.2;
    color: var(--primary-color);
}

.detail-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.detail-meta {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
    justify-content: center;
    font-size: 14px;
    color: var(--text-gray);
    margin-top: calc(var(--spacing-unit) * 4);
    flex-wrap: wrap;
}

.detail-date,
.detail-author,
.detail-location,
.detail-duration {
    position: relative;
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
}

.detail-date::before,
.detail-author::before,
.detail-location::before,
.detail-duration::before {
    font-size: 12px;
    opacity: 0.7;
}

.detail-date::before { content: '📅'; }
.detail-author::before { content: '✍️'; }
.detail-location::before { content: '📍'; }
.detail-duration::before { content: '⏱️'; }

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: calc(var(--spacing-unit) * 6);
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 1);
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.breadcrumb a:hover::after {
    width: 100%;
}

.breadcrumb-separator {
    margin: 0 calc(var(--spacing-unit) * 1);
    color: var(--text-light);
}

.breadcrumb-current {
    color: var(--primary-color);
    font-weight: 500;
}

/* ========================================
   2. DETAIL CONTENT LAYOUT
   ======================================== */

/* .detail-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: calc(var(--spacing-unit) * 8);
    margin-bottom: calc(var(--spacing-unit) * 10);
    align-items: start;
} */
 .detail-content {
    display: grid;
    grid-template-columns: 1fr;  /* 1カラムレイアウトに変更 */
    gap: calc(var(--spacing-unit) * 8);
    margin-bottom: calc(var(--spacing-unit) * 10);
    align-items: start;
    max-width: 800px;  /* 記事の最大幅を設定 */
    margin-left: auto;  /* 中央寄せ */
    margin-right: auto;  /* 中央寄せ */
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 6);
    min-width: 0; /* Prevents overflow */
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 4);
    position: sticky;
    top: calc(70px + var(--spacing-unit) * 4); /* Account for fixed header */
}

/* Hero Image */
.detail-hero-image {
    width: 100%;
    height: 400px;
    background: var(--bg-gray);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: calc(var(--spacing-unit) * 6);
    position: relative;
}

.detail-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.detail-hero-image:hover img {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: calc(var(--spacing-unit) * 4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-hero-image:hover .image-overlay {
    opacity: 1;
}

.image-caption {
    font-size: 12px;
    color: var(--text-light);
    margin-top: calc(var(--spacing-unit) * 2);
    text-align: center;
    font-style: italic;
}

/* Lead Content */
.detail-lead {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 6);
    padding: calc(var(--spacing-unit) * 4);
    background: var(--bg-gray);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Main Content */
.detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

.detail-body p {
    /* margin-bottom: calc(var(--spacing-unit) * 4); */
    margin-bottom: 6px;
}

.detail-body h2 {
    font-size: 28px;
    font-weight: 500;
    margin: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 4) 0;
    color: var(--primary-color);
    line-height: 1.3;
    position: relative;
}

.detail-body h2::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--primary-color);
    border-radius: 2px;
}

.detail-body h3 {
    font-size: 22px;
    font-weight: 500;
    margin: calc(var(--spacing-unit) * 6) 0 calc(var(--spacing-unit) * 3) 0;
    color: var(--primary-color);
    line-height: 1.4;
}

.detail-body h4 {
    font-size: 18px;
    font-weight: 600;
    margin: calc(var(--spacing-unit) * 4) 0 calc(var(--spacing-unit) * 2) 0;
    color: var(--primary-color);
}

/* Lists */
.detail-body ul,
.detail-body ol {
    margin: calc(var(--spacing-unit) * 3) 0;
    padding-left: calc(var(--spacing-unit) * 4);
}

.detail-body li {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    line-height: 1.7;
}

/* Links */
.detail-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.detail-body a:hover {
    border-bottom-color: var(--primary-color);
    color: var(--text-gray);
}

/* Quote Blocks */
.detail-quote {
    margin: calc(var(--spacing-unit) * 6) 0;
    padding: calc(var(--spacing-unit) * 4);
    border-left: 4px solid var(--primary-color);
    background: var(--bg-gray);
    border-radius: 0 8px 8px 0;
    position: relative;
}

.detail-quote::before {
    content: '"';
    position: absolute;
    top: calc(var(--spacing-unit) * 2);
    left: calc(var(--spacing-unit) * 2);
    font-size: 48px;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
}

.detail-quote p {
    font-size: 18px;
    font-style: italic;
    line-height: 1.6;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
    padding-left: calc(var(--spacing-unit) * 4);
}

.detail-quote cite {
    display: block;
    font-style: normal;
    font-size: 14px;
    color: var(--text-gray);
    text-align: right;
    font-weight: 500;
}

.detail-quote cite::before {
    content: '— ';
}

/* ========================================
   3. SIDEBAR COMPONENTS
   ======================================== */

.sidebar-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 4);
    transition: all 0.3s ease;
}

.sidebar-box:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.sidebar-box h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--primary-color);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.sidebar-icon {
    font-size: 18px;
}

/* Info Box */
.info-box .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: 14px;
    padding-bottom: calc(var(--spacing-unit) * 1.5);
    border-bottom: 1px solid var(--border-color);
}

.info-box .info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-box .info-label {
    color: var(--text-gray);
    font-weight: 500;
}

.info-box .info-value {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.action-btn {
    padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 3);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.action-btn-primary:hover {
    background: var(--text-gray);
    border-color: var(--text-gray);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.action-btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn-outline {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border-color);
}

.action-btn-outline:hover {
    background: var(--bg-gray);
    border-color: var(--text-gray);
}

/* Share Box */
.share-box .share-buttons {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    color: var(--white);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.share-btn:hover::before {
    transform: scale(1);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.line { background: #00c300; }
.share-btn.email { background: var(--text-gray); }
.share-btn.copy { background: #6c757d; }

/* Related Content */
.related-box .related-items {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
}

.related-item {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    text-decoration: none;
    color: var(--text-gray);
    transition: all 0.3s ease;
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 6px;
    border: 1px solid transparent;
}

.related-item:hover {
    color: var(--primary-color);
    background: var(--bg-gray);
    border-color: var(--border-color);
    transform: translateX(4px);
}

.related-thumb {
    width: 60px;
    height: 60px;
    background: var(--bg-gray);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    flex: 1;
    min-width: 0;
}

.related-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* Newsletter Signup */
.newsletter-box .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.newsletter-input {
    padding: calc(var(--spacing-unit) * 2);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.newsletter-submit {
    padding: calc(var(--spacing-unit) * 2);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.newsletter-submit:hover {
    background: var(--text-gray);
    transform: translateY(-1px);
}

/* ========================================
   4. EVENT DETAIL SPECIFIC
   ======================================== */

.event-detail-main {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 6);
}

/* Event Venue Info */
.venue-info {
    background: var(--bg-gray);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.venue-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--primary-color);
}

.venue-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
}

.venue-detail-item {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1);
}

.venue-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.venue-value {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Tour Dates */
.tour-dates h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: var(--primary-color);
}

.dates-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 3);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.date-item:hover {
    background: var(--bg-gray);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 0.5);
}

.date-info .date {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
}

.date-info .venue {
    font-size: 16px;
    font-weight: 500;
}

.date-info .city {
    font-size: 13px;
    color: var(--text-gray);
}

.ticket-status {
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 12px;
    text-transform: uppercase;
}

.ticket-status.sold-out {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #e57373;
}

.ticket-status.available {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.ticket-status.presale {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffb74d;
}

/* Setlist */
.setlist-preview h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: var(--primary-color);
}

.setlist {
    list-style: none;
    counter-reset: track-counter;
}

.setlist li {
    counter-increment: track-counter;
    padding: calc(var(--spacing-unit) * 2) 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    position: relative;
    padding-left: calc(var(--spacing-unit) * 4);
    transition: all 0.3s ease;
}

.setlist li:last-child {
    border-bottom: none;
}

.setlist li:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.setlist li::before {
    content: counter(track-counter, decimal-leading-zero) ".";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: var(--text-light);
    font-size: 12px;
}

/* ========================================
   5. ARTICLE DETAIL SPECIFIC
   ======================================== */

.article-detail-main {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 6);
}

/* Article Images */
.article-image {
    margin: calc(var(--spacing-unit) * 6) 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Article Tags */
.article-tags {
    margin-top: calc(var(--spacing-unit) * 6);
    padding-top: calc(var(--spacing-unit) * 4);
    border-top: 1px solid var(--border-color);
}

.article-tags h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--text-gray);
    letter-spacing: 0.05em;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 1.5);
}

.tag-item {
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    background: var(--bg-gray);
    color: var(--text-gray);
    text-decoration: none;
    font-size: 12px;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.tag-item:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* ========================================
   6. NAVIGATION COMPONENTS
   ======================================== */

/* Article Navigation */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 4);
    margin: calc(var(--spacing-unit) * 8) 0;
    padding-top: calc(var(--spacing-unit) * 6);
    border-top: 1px solid var(--border-color);
}

.nav-item {
    padding: calc(var(--spacing-unit) * 4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background: var(--bg-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-item.prev {
    text-align: left;
}

.nav-item.next {
    text-align: right;
}

.nav-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: calc(var(--spacing-unit) * 1);
    font-weight: 600;
}

.nav-title {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.4;
}

/* Back Navigation */
.back-navigation {
    margin: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 4) 0;
    padding-top: calc(var(--spacing-unit) * 6);
    border-top: 1px solid var(--border-color);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.back-link:hover {
    color: var(--primary-color);
    background: var(--bg-gray);
    transform: translateX(-2px);
}

.back-link::before {
    content: '←';
    font-size: 16px;
    transition: transform 0.3s ease;
}

.back-link:hover::before {
    transform: translateX(-2px);
}

/* ========================================
   7. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .detail-content {
        /* grid-template-columns: 1fr 280px; */
        gap: calc(var(--spacing-unit) * 6);
    }

    .detail-title {
        font-size: 36px;
    }

    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .detail-content {
        /* grid-template-columns: 1fr; */
        gap: calc(var(--spacing-unit) * 6);
    }

    .detail-title {
        font-size: 32px;
    }

    .detail-meta {
        flex-direction: column;
        align-items: center;
        gap: calc(var(--spacing-unit) * 2);
    }

    .detail-header {
        padding: calc(var(--spacing-unit) * 4) 0;
    }

    .detail-body h2 {
        font-size: 24px;
        margin: calc(var(--spacing-unit) * 6) 0 calc(var(--spacing-unit) * 3) 0;
    }

    .detail-body h2::before {
        left: -16px;
    }

    .detail-body h3 {
        font-size: 20px;
    }

    .venue-details {
        grid-template-columns: 1fr;
    }

    .date-item {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--spacing-unit) * 2);
    }

    .article-navigation {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 3);
    }

    .nav-item.next {
        text-align: left;
    }

    .share-box .share-buttons {
        justify-content: center;
    }

    .action-buttons {
        gap: calc(var(--spacing-unit) * 1.5);
    }

    .sidebar-box {
        padding: calc(var(--spacing-unit) * 3);
    }
}

@media (max-width: 480px) {
    .detail-page {
        padding: 0 calc(var(--spacing-unit) * 2);
    }

    .detail-title {
        font-size: 28px;
    }

    .detail-lead {
        font-size: 18px;
        padding: calc(var(--spacing-unit) * 3);
    }

    .detail-body {
        font-size: 15px;
    }

    .detail-body h2 {
        font-size: 22px;
    }

    .detail-body h3 {
        font-size: 18px;
    }

    .detail-quote {
        padding: calc(var(--spacing-unit) * 3);
    }

    .detail-quote p {
        font-size: 16px;
        padding-left: calc(var(--spacing-unit) * 3);
    }

    .date-item {
        padding: calc(var(--spacing-unit) * 2.5);
    }

    .nav-item {
        padding: calc(var(--spacing-unit) * 3);
    }

    .nav-title {
        font-size: 14px;
    }

    .related-item {
        padding: calc(var(--spacing-unit) * 1.5);
    }

    .related-thumb {
        width: 50px;
        height: 50px;
    }

    .breadcrumb {
        font-size: 12px;
        margin-bottom: calc(var(--spacing-unit) * 4);
    }
}

/* ========================================
   8. ACCESSIBILITY & PERFORMANCE
   ======================================== */

/* Focus States */
.action-btn:focus,
.share-btn:focus,
.newsletter-input:focus,
.newsletter-submit:focus,
.nav-item:focus,
.back-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.related-item:focus,
.date-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .detail-header::after {
        height: 4px;
    }
    
    .detail-body h2::before {
        width: 6px;
    }
    
    .detail-quote,
    .venue-info {
        border-left-width: 6px;
    }
    
    .sidebar-box,
    .date-item,
    .nav-item {
        border-width: 2px;
    }
    
    .ticket-status {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .detail-hero-image img,
    .sidebar-box,
    .action-btn,
    .share-btn,
    .related-item,
    .date-item,
    .nav-item,
    .back-link,
    .tag-item {
        transition: none;
    }
    
    .detail-hero-image:hover img,
    .sidebar-box:hover,
    .action-btn:hover,
    .share-btn:hover,
    .related-item:hover,
    .date-item:hover,
    .nav-item:hover,
    .back-link:hover,
    .tag-item:hover {
        transform: none;
    }
    
    .action-btn::before,
    .share-btn::before {
        transition: none;
    }
}

/* Performance Optimizations */
.detail-hero-image:hover,
.sidebar-box:hover,
.nav-item:hover,
.date-item:hover {
    will-change: transform, box-shadow;
}

/* Loading States */
.detail-loading {
    opacity: 0.6;
    pointer-events: none;
}

.detail-hero-image.loading,
.sidebar-box.loading {
    background: var(--bg-gray);
    position: relative;
    overflow: hidden;
}

.detail-hero-image.loading::after,
.sidebar-box.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: loading-sweep 1.5s infinite;
}

@keyframes loading-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ========================================
   9. ANIMATION CLASSES
   ======================================== */

/* Fade in animations for dynamic content */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animations for lists */
.date-item:nth-child(1) { animation-delay: 0.1s; }
.date-item:nth-child(2) { animation-delay: 0.2s; }
.date-item:nth-child(3) { animation-delay: 0.3s; }
.date-item:nth-child(4) { animation-delay: 0.4s; }
.date-item:nth-child(5) { animation-delay: 0.5s; }

.related-item:nth-child(1) { animation-delay: 0.1s; }
.related-item:nth-child(2) { animation-delay: 0.2s; }
.related-item:nth-child(3) { animation-delay: 0.3s; }

.setlist li:nth-child(1) { animation-delay: 0.1s; }
.setlist li:nth-child(2) { animation-delay: 0.2s; }
.setlist li:nth-child(3) { animation-delay: 0.3s; }
.setlist li:nth-child(4) { animation-delay: 0.4s; }
.setlist li:nth-child(5) { animation-delay: 0.5s; }

/* Progress animations */
.progress-animation {
    animation: progressSlide 1s ease-out forwards;
}

@keyframes progressSlide {
    from { 
        opacity: 0; 
        transform: translateX(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Pulse animation for important elements */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
}

/* ========================================
   10. UTILITY CLASSES
   ======================================== */

/* Hide elements while maintaining accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Show on focus for keyboard navigation */
.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-small { font-size: 12px; }
.text-large { font-size: 18px; }

.text-muted { color: var(--text-light); }
.text-primary { color: var(--primary-color); }

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: calc(var(--spacing-unit) * 2); }
.mt-4 { margin-top: calc(var(--spacing-unit) * 4); }
.mt-6 { margin-top: calc(var(--spacing-unit) * 6); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: calc(var(--spacing-unit) * 2); }
.mb-4 { margin-bottom: calc(var(--spacing-unit) * 4); }
.mb-6 { margin-bottom: calc(var(--spacing-unit) * 6); }

/* Display utilities */
.hidden { display: none; }
.visible { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }

/* Content status indicators */
.status-draft {
    background: #fff3cd;
    color: #856404;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.status-published {
    background: #d1ecf1;
    color: #0c5460;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.status-featured {
    background: #f8d7da;
    color: #721c24;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 70px; /* Below header */
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-color);
    z-index: 999;
    transition: width 0.3s ease;
}

/* Table of contents */
.table-of-contents {
    background: var(--bg-gray);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    margin: calc(var(--spacing-unit) * 6) 0;
    border: 1px solid var(--border-color);
}

.table-of-contents h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--primary-color);
}

.toc-list {
    list-style: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.toc-list a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: calc(var(--spacing-unit) * 1) 0;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary-color);
    padding-left: calc(var(--spacing-unit) * 2);
}

/* Print Styles */
@media print {
    .detail-sidebar,
    .share-box,
    .action-buttons,
    .article-navigation,
    .back-navigation,
    .reading-progress {
        display: none;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 4);
    }
    
    .detail-title {
        font-size: 32px;
        page-break-after: avoid;
    }
    
    .detail-body h2,
    .detail-body h3 {
        page-break-after: avoid;
    }
    
    .detail-body h2::before {
        display: none;
    }
    
    .detail-quote,
    .venue-info,
    .date-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .detail-body a {
        color: var(--primary-color);
        text-decoration: underline;
    }
    
    .detail-body a::after {
        content: " (" attr(href) ")";
        font-size: 10px;
        color: var(--text-gray);
    }
}