/* ==========================================================================
   RESOURCES STYLESHEET - MOBILE VIEW (SHOW, LIST, DETAIL PAGES)
   ========================================================================== */

.page-container {
    padding: 1.2rem 16px 2.5rem;
    min-height: 70vh;
    background-color: var(--bg-surface);
}

/* Landing / Show Article Header */
.landing-header {
    text-align: left;
    margin-bottom: 1.2rem;
}

.landing-badge {
    display: inline-block;
    background: rgba(255, 85, 0, 0.12);
    border: 1px solid rgba(255, 85, 0, 0.4);
    color: #ff5500;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.landing-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

/* Show Landing Container & Content */
.show-landing {
    width: 100%;
    margin-bottom: 2rem;
}

.landing-content {
    background: #ffffff;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
}

.landing-image-wrapper {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.landing-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.landing-text-body {
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.65;
}

.landing-text-body .lead-desc {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-inner-content p {
    margin-bottom: 1rem;
}

.article-inner-content h2,
.article-inner-content h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin: 1.2rem 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
}

.article-inner-content ul,
.article-inner-content ol {
    margin: 0.8rem 0 1rem 1.2rem;
    color: #475569;
}

.article-inner-content li {
    margin-bottom: 0.4rem;
}

/* Landing CTA Callout Banner */
.landing-cta-banner {
    margin-top: 1.5rem;
    background: #0f1624;
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    color: #ffffff;
    border: 1px solid rgba(255, 85, 0, 0.4);
}

.cta-inner h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.cta-inner p {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* ==========================================================================
   RELATED GAMES SECTION (PILIHAN GAME CASINO TERKAIT)
   ========================================================================== */

.related-section {
    width: 100%;
    margin-top: 1.5rem;
}

.section-header-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(0, 158, 79, 0.12), rgba(255, 204, 0, 0.15));
    border: 1px solid rgba(0, 158, 79, 0.35);
    color: var(--primary-dark, #007a3d);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.related-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.related-game-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.25s ease;
    position: relative;
}

.related-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 158, 79, 0.16);
    border-color: rgba(0, 158, 79, 0.5);
}

.related-game-card:active {
    transform: translateY(-1px);
}

.game-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #00220a;
}

.game-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.related-game-card:hover .game-thumb-box img {
    transform: scale(1.08);
}

.game-rtp-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #009e4f 0%, #006633 100%);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    font-family: var(--font-heading);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 204, 0, 0.6);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
    z-index: 2;
    letter-spacing: 0.3px;
}

.game-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 34, 10, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

.play-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcc00 0%, #e6a800 100%);
    color: #003311;
    font-size: 0.85rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
    transform: scale(0.75);
    transition: transform 0.25s ease;
    box-shadow: 0 0 14px rgba(255, 204, 0, 0.7);
}

.related-game-card:hover .game-hover-overlay {
    opacity: 1;
}

.related-game-card:hover .play-icon-circle {
    transform: scale(1);
}

.game-card-body {
    padding: 9px 10px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.game-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.game-provider-tag {
    font-size: 0.6rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #008844;
    background: rgba(0, 158, 79, 0.08);
    border: 1px solid rgba(0, 158, 79, 0.2);
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

.game-rating-stars {
    color: #f59e0b;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    line-height: 1;
}

.game-card-title {
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-dark, #0f172a);
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.related-game-card:hover .game-card-title {
    color: var(--primary-color, #009e4f);
}

.game-card-desc {
    color: var(--text-muted, #64748b);
    font-size: 0.7rem;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.game-card-action {
    margin-top: auto;
}

.btn-game-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 6px 8px;
    background: linear-gradient(135deg, #009e4f 0%, #007a3d 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 6px;
    border: 1px solid rgba(255, 204, 0, 0.3);
    box-shadow: 0 2px 6px rgba(0, 158, 79, 0.25);
    transition: all 0.2s ease;
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.related-game-card:hover .btn-game-play {
    background: linear-gradient(135deg, #ffcc00 0%, #e6b800 100%);
    color: #003311;
    border-color: #ffcc00;
    box-shadow: 0 3px 10px rgba(255, 204, 0, 0.4);
}

.related-game-card:hover .btn-arrow {
    transform: translateX(3px);
}

/* Fallback for single column narrow mobile screens */
@media (max-width: 360px) {
    .related-games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-thumb-box {
        aspect-ratio: 16 / 9;
    }
}