@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 100%);
}

.section {
    padding: 60px 0;
}

.container {
    margin: 0 auto;
    max-width: 1000px;
    /* background-color: #1e293b; */
    /* background-color: #18181b; */
    min-height: 100vh;
}

h1 {
    text-align: center;
    padding-top: 2rem;
    font-family: 'Inter';
    color: #0f172a;
    font-weight: 700;
    font-size: 2.5rem;
}

h2 {
    color: #6b7280;
    text-align: center;
    font-family: 'Inter';
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.user-input {
    margin: 2rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;

}

#usernameText {
    font-family: 'Inter';
    margin-top: 2rem;
    margin-left: 2rem;
    text-align: center;
    color: #374151;
    font-weight: 500;
}


#username-box {
    /* width: 100%; */
    padding: 12px 40px 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #1f2937;
}

#username-box:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    /* space for button */
    font-size: 16px;
}

#clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#clear-btn.show {
    opacity: 1;
    pointer-events: auto;
}

#clear-btn:hover {
    color: #6b7280;
}

#search-btn {
    padding: 12px 24px;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 2rem;
    margin-right: 2rem;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

#search-btn:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

#search-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.hidden {
    display: none !important;
}

.circle {
    --progress: 0;
    --color: #4f46e5;

    width: 120px;
    height: 120px;
    border-radius: 50%;

    background: conic-gradient(var(--color) calc(var(--progress) * 1%),
            rgba(59, 130, 246, 0.08) 0);

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

.circle small {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 500;
}

.circle span {
    position: relative;
    z-index: 2;
}

.progress {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.cards-section {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.card {
    background-color: #ffffff;
    margin-left: 2rem;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    width: 9rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.value-containers {
    display: flex;
    justify-content: center;
    font-weight: bold;
    font-family: 'Inter';
}

.parameters {
    font-family: 'Inter';
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* TABLETS */
@media (min-width:768px) {

    .container {
        margin: 0 auto;
        /* max-width: 1000px; */
        /* background-color: rgb(61, 56, 57); */
        background: transparent;
        min-height: 100vh;
    }

    .cards-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        justify-items: center;
        align-content: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    body {
        min-height: 100vh;
    }

    h1 {
        text-align: center;
        /* margin-top: 4rem; */
        padding-top: 2rem;
        font-family: 'Inter';
    }

    #user-form {
        display: flex;
        justify-content: center;
        flex-direction: row;
        gap: 3rem;
    }

    #usernameText {
        font-family: 'Inter';
        margin-top: 2rem;
        margin-left: 2rem;
        text-align: left;
    }

    #username-box {
        padding: 12px 16px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        outline: none;
        font-size: 16px;
        transition: all 0.3s ease;
        /* width: 100%; */
        margin-left: 2rem;
        /* max-width: 500px; */
        margin-right: 2rem;
        background-color: #ffffff;
        color: #1f2937;
    }

    #search-btn {
        /* margin-left: 1rem; */
        /* width: 100%; */
        padding: 12px 16px;
        background-color: #4f46e5;
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .input-wrapper {
        display: flex;
        justify-content: center;
    }
}

/* DESKTOP */
@media (min-width:1024px) {

    .container {
        margin: 0 auto;
        background: transparent;
        min-height: 100vh;
    }

    body {
        min-height: 100vh;
    }

    h1 {
        text-align: center;
        padding-top: 2rem;
        font-family: 'Inter';
    }

    .user-input {
        display: grid;
        grid-template-columns: 3fr 1fr;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    #username-box {
        flex: 1;
        /* makes input take remaining space */
        padding: 12px 16px;
        border: 2px solid #ccc;
        border-right: none;
        /* merges nicely with button */
        border-radius: 10px;
        outline: none;
        font-size: 16px;
        font-family: 'Inter';
        /* width: 80%; */
    }

    #search-btn {
        padding: 12px 24px;
        background-color: #4f46e5;
        color: white;
        border: 2px solid #4f46e5;
        border-radius: 10px;
        font-size: 16px;
        cursor: pointer;
    }

    #clear-btn {
        position: absolute;
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        background: none;
        font-size: 16px;
        cursor: pointer;

        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
}