/* ============================================
   RESOURCES.CSS — Mobile-First (List, News, Show)
   Strictly Mobile Proportioned for All Screens
   ============================================ */

.page-container {
    padding-top: calc(58px + 1rem);
    min-height: 80vh;
}

/* ── Page Hero ── */
.page-hero {
    padding: 1.5rem 0 2rem;
    background: transparent;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
    position: relative;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.85rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
}

.breadcrumb-nav a {
    color: var(--text-muted);
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-nav span {
    opacity: 0.4;
}

.page-title,
.landing-title,
.article-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0;
    text-align: center;
    color: var(--text-heading);
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 0.85rem;
    font-size: 0.76rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.hero-badge {
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.7rem;
    border: 1px solid var(--border-light);
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-meta-item i {
    color: var(--primary);
}

/* ── Article Container ── */
.article-container {
    padding: 0 1rem 3rem;
}

.article-main-visual {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.article-main-visual img {
    width: 100%;
    display: block;
}

.article-body {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-body);
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body h2,
.article-body h3 {
    color: var(--text-heading);
    margin: 2rem 0 0.85rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.article-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--bg-subtle);
    border-left: 3px solid var(--primary);
    font-style: italic;
    font-size: 0.92rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--primary-deep);
}

/* ── 2-Column Mobile News/Games Grid ── */
.news-grid-glow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
}

.news-card-glow {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.news-glow-img {
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
    background: var(--bg-subtle);
}

.news-glow-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-badge-glow {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--primary);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
}

.news-glow-content h3 {
    font-size: 0.85rem;
    margin-bottom: 4px;
    line-height: 1.3;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-glow-content h3 a {
    color: var(--text-heading);
}

.news-glow-content p {
    color: var(--text-body);
    font-size: 0.74rem;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-glow-footer {
    margin-top: auto;
}

.read-more-glow {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   DARK MODE COMPONENT OVERRIDES (RESOURCES)
   ============================================ */
[data-theme="dark"] .page-hero {
    border-bottom-color: rgba(167, 139, 250, 0.18);
}

[data-theme="dark"] .hero-badge {
    background: rgba(144, 97, 249, 0.2);
    color: #c4b5fd;
    border-color: rgba(167, 139, 250, 0.25);
}

[data-theme="dark"] .breadcrumb-nav {
    color: #94a3b8;
}

[data-theme="dark"] .breadcrumb-nav a {
    color: #94a3b8;
}

[data-theme="dark"] .breadcrumb-nav a:hover {
    color: #c4b5fd;
}

[data-theme="dark"] .page-title,
[data-theme="dark"] .landing-title,
[data-theme="dark"] .article-title,
[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3 {
    color: #f8fafc;
}

[data-theme="dark"] .article-body {
    color: #cbd5e1;
}

[data-theme="dark"] .article-main-visual {
    border-color: rgba(167, 139, 250, 0.18);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .article-body blockquote {
    background: #1a1334;
    border-left-color: var(--primary);
    color: #c4b5fd;
}

[data-theme="dark"] .news-card-glow {
    background: #130e26;
    border-color: rgba(167, 139, 250, 0.18);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .news-glow-content h3 a {
    color: #f8fafc;
}

[data-theme="dark"] .news-glow-content p {
    color: #94a3b8;
}

[data-theme="dark"] .read-more-glow {
    color: #a78bfa;
}

/* ── Smooth Theme Transitions on Resources Elements ── */
.news-card-glow, .article-main-visual, .page-hero, .hero-badge {
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
