body {
    font-family: 'Inter', sans-serif;
    background-color: #f7f7f7;
    color: #222;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

/* ---------------- LOGO BLOCK ---------------- */

.logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    color: #cc0000; /* strong red */
}

.logo-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

/* ---------------- NAVIGATION ---------------- */

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-link {
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: 6px;
    color: #333;
    background-color: #eaeaea;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #dcdcdc;
}

/* ---------------- CORE ELEMENTS ---------------- */

h1 {
    color: #cc0000;
    text-align: center;
    margin-bottom: 20px;
}

textarea, input[type="text"] {
    width: 100%;
    font-family: monospace;
    font-size: 14px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: white;
    color: #000;
}

/* ---------------- BUTTONS ---------------- */

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #000;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

button:hover {
    background-color: #f0f0f0;
    border-color: #888;
}

.button-group {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

/* ---------------- COUNTER CARD ---------------- */

#counter-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.counter-label {
    color: #444;
}

#counter-value {
    font-weight: bold;
    color: #000;
}

/* ---------------- RESULTS ---------------- */

#results {
    margin-top: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-x: auto;
}

#results-list {
    list-style: none;
    padding-left: 0;
    white-space: nowrap;
}

#results-list li {
    margin-bottom: 8px;
}

/* ---------------- BADGE ---------------- */

.contributor-badge {
    margin-top: 20px;
    text-align: center;
}

.contributor-badge img {
    width: 232px;
    box-shadow: 2px 2px 1px rgba(0,0,0,.2);
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 600px) {
    .nav-header {
        flex-direction: column;
        gap: 10px;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group button {
        width: 100%;
    }
}

