/* =========================================
   LANDING PAGE SPECIFIC STYLES
   ========================================= */

/* --- Section 1 Layout --- */
.main-content { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.left-section { flex: 1; display: flex; justify-content: center; }
.main-hero-image { max-width: 100%; height: auto; }
.menu-grid {
    display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto auto;
    row-gap: 30px; column-gap: 40px;
}
.item-games { grid-column: 1; grid-row: 1; }
.item-news { grid-column: 1; grid-row: 2; }
.item-community { grid-column: 1; grid-row: 3; }
.item-indie { grid-column: 2; grid-row: 1; }
.section-spacer { height: 150px; }

/* --- Side Note --- */
.side-note {
    position: relative; display: flex; align-items: center; justify-content: center;
    background-color: #f4ccdf; border: 1px solid #000; width: 200px; height: 60px;
}
.side-note-text {
    color: #8879e3; font-size: 20px; text-align: center; text-decoration: none; line-height: 1.2;
}

/* --- SECTION 2: TABS --- */
.tab-header-row { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 30px; width: 100%; }
.tab-header-row .btn { flex: 1; width: auto; }
.tab-content { display: none; animation: fadeIn 0.4s; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
#btn-games-tab .tab-title { color: #6e5dc6; text-decoration: underline; }
#btn-news-tab .tab-title { color: #ba4d52; text-decoration: underline; }
#btn-community-tab .tab-title { color: #b8980b; text-decoration: underline; }
.tab-header-row button.active .tab-title { color: #000000 !important; font-weight: bold; text-decoration: none !important; }

/* Explore more Font */
.explore-more { font-family: 'Lexend Deca', sans-serif; font-size: 15px; color: #000000; text-decoration: underline; align-self: flex-end; margin-top: 15px; }
.panel-title { color: #fff; font-size: 22px; font-weight: 500; margin-bottom: 20px; text-align: center; }

/* Games Layout */
.games-columns { display: flex; gap: 30px; }
.games-panel {
    flex: 1; background-color: #b9adf3; border-radius: 10px; padding: 30px 20px;
    height: 420px; max-height: 420px; display: flex; flex-direction: column; overflow: hidden;
}
.game-item { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.game-img-placeholder { width: 80px; height: 80px; background-color: #444; border: 3px solid #333; position: relative; }
.game-img-placeholder::after { content: ''; position: absolute; bottom: 5px; right: 5px; border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 30px solid #666; }
.game-img-placeholder::before { content: ''; position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; background: #666; border-radius: 50%; }
.scroll-area { overflow-y: auto; flex: 1; min-height: 0; padding-right: 15px; margin-bottom: 10px; }

.games-panel-bottom-padding { padding-bottom: 20px; }
.landing-map-container {
    width: 100%; height: 100%; border: 1px solid #000; border-radius: 8px; margin-bottom: 15px; background-color: #ddd;
}
.direct-link-btn {
    display: block; background: #f7cd16; border: 2px solid #000; border-radius: 6px; padding: 10px; text-align: center; color: #000; text-decoration: none; font-weight: bold; margin-bottom: 10px; transition: transform 0.2s;
}
.direct-link-btn:hover { transform: scale(1.02); }

/* News Layout */
.news-panel {
    background-color: #e5757a; border-radius: 10px; padding: 30px 20px; height: 420px; max-height: 420px;
    display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.news-flex-container { display: flex; flex-wrap: wrap; gap: 15px; width: 100%; }
#news-articles-list .card-link { flex: 1 1 calc(33.333% - 10px); min-width: 180px; display: flex; }
.news-card { background: #fff; border: 1px solid #000; width: 100%; height: 260px; padding: 20px; display: flex; flex-direction: column; }
.news-img-placeholder { height: 120px; background-color: #d1e99a; border: 1px solid #000; margin-bottom: 15px; object-fit: cover; }
.news-card h4 { font-size: 18px; margin-bottom: 10px; }
.news-card p { font-size: 14px; line-height: 1.4; }
.news-text-only { display: flex; flex-direction: column; justify-content: center; height: 100%; }

/* Community Layout */
.community-panel { background-color: #fff; border: 4px solid #f7cd16; border-radius: 10px; padding: 25px 30px; height: 420px; max-height: 420px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.panel-title-center { text-align: center; font-size: 22px; font-weight: bold; margin-bottom: 15px; color: #000; }
.community-flex { display: flex; gap: 30px; width: 100%; flex: 1; min-height: 0; align-items: stretch; }
.community-left-panel { flex: 1; min-width: 0; }
.community-right-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; }
.login-prompt-box { border: 2px solid #000; background-color: #fdf9e3; border-radius: 8px; padding: 30px 25px; text-align: center; height: 80%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.login-prompt-box p { margin-bottom: 25px; font-size: 16px; color: #555; }
.btn-green { background-color: #399e69; color: #fff; border: 1px solid #000; border-radius: 6px; padding: 14px 30px; font-size: 18px; font-weight: bold; cursor: pointer; height: 45%; }
.post-form-box { border: 1px solid #000; background-color: #fdf9e3; border-radius: 8px; padding: 20px 20px; }
.post-as-text { font-size: 14px; color: #555; margin-bottom: 10px; }
.post-as-text strong { color: #000; font-weight: bold; }
.form-label { font-size: 11px; color: #777; font-weight: bold; letter-spacing: 0.5px; display: block; margin-bottom: 4px; }
.form-select { background-color: #faee7d; border: 1.5px solid #000; border-radius: 6px; width: 100%; padding: 8px 12px; font-family: 'Lexend Deca', sans-serif; font-size: 14px; color: #000; margin-bottom: 12px; outline: none; cursor: pointer; }
.message-row { display: flex; gap: 10px; align-items: stretch; }
.form-textarea { flex: 1; background-color: #faee7d; border: 1.5px solid #000; border-radius: 6px; padding: 10px; font-family: 'Lexend Deca', sans-serif; font-size: 13px; color: #000; height: 95px; resize: none; outline: none; }
.form-textarea.error-border { border: 2px solid #e5757a; background-color: #fff0f0; }
.btn-post-thread { background-color: #399e69; color: #fff; border: 1.5px solid #000; border-radius: 6px; width: 80px; font-family: 'Lexend Deca', sans-serif; font-size: 14px; font-weight: bold; line-height: 1.2; cursor: pointer; }
.btn-post-thread:hover { background-color: #2e8356; }
.threads-stack { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.thread-card-link { text-decoration: none; color: inherit; display: block; }
.thread-card { background-color: #399e69; border: 1.5px solid #000; border-radius: 8px; padding: 8px 15px 10px 15px; }
.thread-card-header { text-align: right; margin-bottom: 2px; }
.thread-time { font-size: 11px; color: #1a4d2f; font-weight: 500; }
.thread-card-body { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.thread-title { color: #fff; font-size: 18px; font-weight: bold; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-pill { border: 1px solid #000; border-radius: 20px; padding: 3px 14px; font-size: 13px; font-weight: bold; color: #000; white-space: nowrap; }
.empty-state-container { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; }
.empty-state-text { color: #555; font-size: 16px; text-align: center; }

/* --- Mobile Responsiveness (Landing Specific) --- */
@media (max-width: 768px) {
    .main-content { flex-direction: column; gap: 50px; }
    .menu-grid { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 100%; }
    .tab-header-row { flex-direction: row; justify-content: center; gap: 20px; margin-bottom: 50px; }
    .tab-header-row .btn { width: 60px; height: 60px; flex: none; background: transparent; border: none; opacity: 0.4; transition: opacity 0.3s ease; }
    .tab-header-row .btn.active { opacity: 1 !important; }
    .tab-header-row .btn-text { display: none; }
    .tab-header-row .icon-overlap { position: relative; left: 0; transform: none; width: 100%; height: 100%; }
    .games-columns { flex-direction: column; }
    
    /* Ensure games-panel expands height dynamically on mobile so map remains fully visible */
    .games-panel { height: auto !important; max-height: none !important; }
    .landing-map-container { height: 230px !important; display: block !important; }

    .community-flex { flex-direction: column; align-items: flex-start; }
    .news-flex-container { flex-direction: column; }
    .news-card { height: auto; }
    .community-panel { height: auto; max-height: none; padding: 20px; }
    .community-flex { flex-direction: column; gap: 25px; }
    .community-left-panel, .community-right-panel { width: 100%; flex: none; }
    .community-right-panel { height: 300px; }
}