/* =====================================================
   RESOURCES & CATEGORY SHOW PAGE (show.html)
   Mobile Optimized (Locked to 480px)
   ===================================================== */

/* Back to Home Navigation Bar */
.back-home-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 74px; /* Clearance for fixed mobile header */
    padding-bottom: 12px;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-card-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
}

.btn-back-home:hover {
    background: var(--color-cream-subtle);
    color: var(--color-terracotta);
    border-color: var(--border-terracotta);
}

[data-theme="dark"] .btn-back-home {
    background: #1C1A18;
    color: #F4F1EC;
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .btn-back-home:hover {
    background: #272421;
    color: var(--color-terracotta);
    border-color: var(--color-terracotta);
}

.back-home-arrow {
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 900;
    color: var(--color-terracotta);
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn-back-home:hover .back-home-arrow {
    transform: translateX(-3px);
}

.back-home-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-text-muted);
    background: rgba(28, 25, 23, 0.05);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

[data-theme="dark"] .back-home-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
}

/* Page Header & Hero - Dark Band matching Index */
.landing-hero {
    position: relative;
    padding: 24px 0 28px;
    background: var(--color-dark-bg);
    overflow: hidden;
    color: #FFFFFF;
}

.landing-hero-bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 65% 60% at 20% 50%, rgba(234, 88, 12, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

.landing-hero-inner {
    position: relative;
    z-index: 2;
}

.landing-badge-row {
    margin-bottom: 12px;
}

.landing-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 18px;
}

.landing-meta-dot {
    color: rgba(255, 255, 255, 0.35);
}

.landing-hero-actions {
    margin-top: 10px;
}

.page-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 10px;
}

/* Landing Main Content */
.landing-content {
    margin: 20px 0;
}

.landing-content > img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 18px;
}

/* Article Body */
.article-body {
    background: var(--color-card-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
    box-shadow: var(--shadow-subtle);
}

/* Bottom Back Button after Article */
.article-bottom-back {
    margin-top: 16px;
    text-align: center;
}

.btn-back-home-bottom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: var(--color-card-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 12px 18px;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--color-text-main);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
}

.btn-back-home-bottom:hover {
    background: var(--color-terracotta);
    color: #FFFFFF !important;
    border-color: var(--color-terracotta);
}

.article-body h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin: 16px 0 8px;
}

.article-body p {
    margin-bottom: 14px;
}

.article-body ul,
.article-body ol {
    margin-left: 18px;
    margin-bottom: 16px;
}

.article-body li {
    margin-bottom: 6px;
    line-height: 1.55;
}

.article-body strong {
    color: var(--color-text-main);
}

/* Archive List & Related Items (2-Column Mobile Grid) */
.archive-list {
    margin: 24px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.archive-item {
    background-color: var(--color-card-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
}

.archive-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    background-color: var(--color-cream-surface);
}

.archive-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.archive-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: var(--color-dark-bg);
    color: #FFFFFF !important;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-top: auto;
    width: 100%;
}
