* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    min-height: 100vh;
    background-color: #0f0f0f;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.2s;
}

/* main wrapper */
.container {
    width: 100%;
    max-width: 720px;
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* site name – capital Z Zuellni, minimal */
.site-title {
    font-size: 5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: #e8e8e8;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.03);
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}

/* search card */
.search-card {
    width: 100%;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 44px;
    padding: 0.2rem 0.2rem 0.2rem 1.2rem; /* reduced left padding on mobile */
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px -8px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
    transition: box-shadow 0.2s, border-color 0.2s;
    margin-bottom: 2rem;
}

.search-card:focus-within {
    border-color: #5f5f5f;
    box-shadow: 0 12px 28px -6px #000, 0 0 0 1px #3d3d3d inset;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem; /* base size, will adjust with media query */
    color: #f0f0f0;
    padding: 0.75rem 0.5rem 0.75rem 0;
    min-width: 0; /* prevents flex overflow on small screens */
}

.search-input::placeholder {
    color: #666;
    font-weight: 300;
    font-size: 0.95rem;
}

.search-button {
    background: #303030;
    border: none;
    border-radius: 40px;
    padding: 0.7rem 1.5rem;
    margin: 0.2rem;
    color: #ddd;
    font-size: 0.95rem;
    font-weight: 450;
    cursor: pointer;
    border: 1px solid #4a4a4a;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap; /* keeps button text in one line */
    flex-shrink: 0; /* prevents button from shrinking */
}

.search-button:hover {
    background: #3d3d3d;
    border-color: #6a6a6a;
    color: #fff;
}

/* results section */
.results-section {
    width: 100%;
    margin-top: 1rem;
}

.result-stats {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.8rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #262626;
}

.result-item {
    background: #181818;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    border: 1px solid #2b2b2b;
    transition: background 0.1s;
    color: #b0b0b0;
    word-break: break-word;
}

.result-item:hover {
    background: #1d1d1d;
    border-color: #3f3f3f;
}

/* footer note */
.footer-note {
    margin-top: 2rem;
    font-size: 0.7rem;
    color: #4a4a4a;
    text-align: center;
    border-top: 1px solid #242424;
    padding-top: 1.2rem;
    width: 100%;
}

/* ===== MOBILE-SPECIFIC ADJUSTMENTS ===== */
@media screen and (max-width: 600px) {
    .container {
        padding: 0.75rem;
    }

    .site-title {
        font-size: 3.8rem; /* smaller on mobile */
        margin-bottom: 1.5rem;
    }

    .search-card {
        padding-left: 1rem; /* even smaller on very small screens */
        border-radius: 38px;
    }

    .search-input {
        font-size: 0.95rem;
        padding: 0.7rem 0.4rem 0.7rem 0;
    }

    .search-input::placeholder {
        font-size: 0.9rem;
    }

    .search-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 36px;
    }

    .result-item {
        padding: 0.9rem 1rem;
        border-radius: 14px;
    }
}

/* extra small devices (under 400px) */
@media screen and (max-width: 400px) {
    .site-title {
        font-size: 3.2rem;
    }

    .search-card {
        padding-left: 0.8rem;
    }

    .search-input {
        font-size: 0.9rem;
    }

    .search-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .result-item {
        padding: 0.8rem;
    }
}

/* ensure touch targets are comfortable */
button, .search-button {
    min-height: 44px; /* iOS friendly tap target */
    min-width: 44px;
}

.search-input {
    min-height: 44px;
}
