/* home.css */
:root {
    --bg-color: #050505;
    /* Premium Dark Blue-Grey Card Background */
    --card-bg: rgba(22, 29, 36, 0.85);

    /* Subtle Steel Blue Border */
    --border-color: #303d4d;

    /* "Premium" Electric Blue Primary */
    --primary: #4da6ff;

    --accent: #238636;

    /* Cool White Text */
    --text-main: #edf2f7;

    /* Blue-ish Grey Muted Text */
    --text-muted: #94a3b8;
}

* { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0; padding: 0;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(77, 166, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(35, 134, 54, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex; flex-direction: column;
    overflow-x: hidden;
}

.grid-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(48, 61, 77, 0.1) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(48, 61, 77, 0.1) 1px, transparent 1px);
    z-index: -1;
    pointer-events: none;
}

.home-container {
    width: 100%;
    max-width: 1600px;
    padding: 20px;
    text-align: center; z-index: 10; margin: 0 auto; flex: 1;
    display: flex; flex-direction: column; justify-content: center;
}

/* --- LOGO & HEADER --- */
h1 {
    /* Large top margin for spacing */
    margin: 160px 0 30px 0;
    display: flex; justify-content: center;
}

.home-logo {
    height: 90px;
    /* Your custom tweak */
    margin-top: 4rem;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(77, 166, 255, 0.2));
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

/* --- SEARCH --- */
.search-wrapper {
    position: relative; width: 100%; max-width: 700px; margin: 0 auto 2rem auto;
    display: flex; align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 9px; transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    backdrop-filter: blur(12px);
}
.search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(77, 166, 255, 0.15);
    transform: translateY(-2px);
}
.search-input {
    flex: 1; background: transparent; border: none; color: white;
    font-size: 1.2rem; padding: 15px 20px; font-family: inherit;
}
.search-btn {
    height: 50px; width: 50px; border-radius: 8px;
    background: var(--primary); border: none;
    color: #050505; font-size: 1.2rem; cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.search-btn:hover { background: #80c4ff; box-shadow: 0 0 20px var(--primary); }

/* --- CHIPS --- */
.syntax-help {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin-bottom: 2rem;
}
.chip {
    background: rgba(30, 39, 49, 0.8); /* Dark Steel */
    border: 1px solid var(--border-color);
    padding: 8px 16px; border-radius: 4px;
    font-size: 0.9rem; color: var(--text-muted); font-family: 'Rajdhani', monospace; font-weight: 600;
    cursor: pointer; transition: 0.2s;
}
.chip:hover {
    border-color: var(--primary); color: var(--primary);
    background: rgba(77, 166, 255, 0.1); transform: translateY(-2px);
}

/* --- STATS --- */
.stats-container {
    display: flex; justify-content: center; gap: 80px; margin-bottom: 30px;
}
.stat-val {
    font-family: 'Audiowide', monospace;
    font-size: 2.5rem; color: #fff; line-height: 1; display: block;
    text-shadow: 0 0 25px rgba(0,0,0,0.6);
}
.stat-label {
    font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted);
    letter-spacing: 2px; margin-top: 8px; display: block;
}

/* --- MAP --- */
.map-wrapper {
    width: 100%;
    height: 75vh;
    min-height: 700px;
    margin-top: 10px;
    overflow: hidden;
}

/* TOOLTIP STYLES */
.jvm-tooltip {
    z-index: 99999 !important;
    background-color: #161b22 !important;
    border: 1px solid #303d4d !important;
    color: #edf2f7 !important;
    font-family: monospace;
    padding: 8px 12px; border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.9);
}

.site-footer {
    width: 100%; padding: 30px 0; background: #0b0d10;
    border-top: 1px solid var(--border-color);
    text-align: center; color: var(--text-muted); font-size: 0.9rem;
    margin-top: auto;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .jvm-tooltip { display: none !important; }

    .home-container {
        padding: 20px 5px;
        justify-content: flex-start;
        max-width: 100%; width: 100%;
    }

    h1 { margin-top: 80px; }
    .home-logo { height: 60px; margin-top: 0; /* Reset extra margin on mobile */ }
    .subtitle { font-size: 0.9rem; margin-bottom: 2rem; }

    .search-wrapper { margin-bottom: 1.5rem; width: 95%; }
    .search-input { font-size: 1rem; padding: 12px; }
    .search-btn { width: 45px; height: 45px; }

    .syntax-help {
        display: flex; flex-wrap: nowrap; overflow-x: auto;
        justify-content: flex-start; padding-bottom: 10px;
        width: 100%; -webkit-overflow-scrolling: touch;
        padding-left: 10px;
    }
    .chip { white-space: nowrap; flex-shrink: 0; }

    .stats-container { gap: 30px; margin-bottom: 20px; }
    .stat-val { font-size: 1.8rem; }

    .map-wrapper { height: 50vh; min-height: 400px; }
}
