
:root { 
    --primary: #1a4d2e; --primary-light: #2d6a4f; 
    --gold: #d4ac0d; --bg: #f8f9fa; --surface: #ffffff;
    --text: #2d3436; --text-light: #636e72; --border: #eef2f3; 
}
[data-theme="dark"] {
    --primary: #1a4d2e; --bg: #121212; --surface: #1e1e1e;
    --text: #e0e0e0; --text-light: #a0a0a0; --border: #333; 
}
* { box-sizing: border-box; font-family: system-ui, -apple-system, sans-serif; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--text); padding-bottom: 40px; }

/* 🌟 LANDING PAGE STYLES */
.landing-wrapper {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(135deg, #0f2e1b 0%, #1a4d2e 100%);
    color: white; z-index: 9999; display: flex; 
    align-items: flex-start; /* FIX: Stops mobile from crushing the top */
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
    overflow-y: auto; 
    padding: 10px 20px 40px 20px; /* FIX: Massive 80px breathing space at the top */
}
.landing-content {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(212, 172, 13, 0.3);
    padding: 40px 30px; border-radius: 16px;
    max-width: 600px; text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    margin: auto 0; /* FIX: Keeps it beautifully centered on big screens! */
}

.landing-icon { font-size: 3.5rem; margin-bottom: 10px; }
.landing-title { 
    font-size: 2.2rem; margin: 0 0 10px; color: var(--gold); 
    font-family: Georgia, serif; line-height: 1.2;
}
.landing-subtitle { font-size: 1.1rem; color: #e0e0e0; margin-bottom: 25px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.landing-stats { 
    display: flex; justify-content: center; gap: 15px; 
    flex-wrap: wrap; background: rgba(255,255,255,0.1);
    padding: 10px; border-radius: 8px; margin-bottom: 25px;
    font-size: 0.9rem; font-weight: bold; color: #f1c40f;
}
.landing-desc { font-size: 1rem; line-height: 1.6; color: #dcdde1; margin-bottom: 25px; }
.landing-credit { font-size: 0.85rem; color: #888; font-style: italic; margin-bottom: 30px; }

.enter-btn {
    background: linear-gradient(to right, #d4ac0d, #f1c40f);
    color: #111; font-weight: bold; font-size: 1.2rem;
    padding: 15px 40px; border: none; border-radius: 30px;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(212, 172, 13, 0.4);
}
.enter-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 172, 13, 0.6); }
.enter-btn:active { transform: translateY(1px); }

/* MAIN APP STYLES */
header { 
    background: var(--primary); color: white; height: 50px; 
    display: flex; align-items: center; justify-content: space-between; 
    padding: 0 15px; position: sticky; top: 0; z-index: 100; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}
.header-btn { background: none; border: none; color: white; font-size: 1.4rem; cursor: pointer; padding: 5px; }
.header-title { font-weight: 600; font-size: 1.1rem; }

.search-container { background: var(--primary); padding: 10px 15px 15px; }
#searchBox { 
    width: 100%; padding: 12px 15px; font-size: 16px; 
    border: none; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    outline: none; 
}
#searchBox:focus { box-shadow: 0 0 0 2px var(--gold); }

.breadcrumb { background: var(--surface); padding: 10px 15px; font-size: 0.85rem; color: var(--text-light); border-bottom: 1px solid var(--border); font-weight: bold; }

#content-list { list-style: none; padding: 0; margin: 0; }
.list-item { 
    background: var(--surface); border-bottom: 1px solid var(--border); 
    padding: 15px; cursor: pointer; transition: background 0.2s;
}
.list-item:active { background: var(--border); }

.cat-title { font-weight: 600; font-size: 1.1rem; color: var(--primary); margin-bottom: 5px; line-height: 1.3;}[data-theme="dark"] .cat-title { color: var(--gold); }
.cat-count { font-size: 0.8rem; color: var(--text-light); background: var(--border); padding: 2px 8px; border-radius: 12px; }

.f-title { font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; line-height: 1.4; }
.f-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; line-height: 1.4; }
.f-btn { 
    display: inline-block; background: var(--primary); color: white; 
    text-decoration: none; padding: 8px 16px; border-radius: 6px; 
    font-size: 0.9rem; font-weight: bold; text-align: center;
}
.f-btn:active { transform: scale(0.98); }
.f-id { color: var(--gold); font-size: 0.8rem; font-weight: bold; margin-right: 5px; }

.install-btn {
    display: none; width: 90%; margin: 20px auto; padding: 12px;
    background: var(--gold); color: #000; border: none; border-radius: 8px;
    font-weight: bold; font-size: 1rem; cursor: pointer; text-align: center;
}
mark { background: rgba(212, 172, 13, 0.4); color: inherit; padding: 0 2px; border-radius: 2px; }
