/* Layout */

.achievement-board {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    margin: 10vh 0;
}

@media (max-width: 1000px) {
    .achievement-board {
        flex-direction: column;
    }
}

#achievements h1{
    font-size: clamp(2em, 15vw, 8em);
    white-space: nowrap;
    overflow-wrap: normal;
}

/* GPA Section */

.achievement-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;

    flex: 1;
    min-width: 0;
    min-height: 36rem;
    padding: 2rem;
    box-sizing: border-box;

    position: sticky;
    top: 6rem;

    background: linear-gradient(60deg,
        rgba(221, 0, 255, 1) 0%,
        rgba(255, 136, 0, 1) 100%);;
}


.achievement-score {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: clamp(5rem, 9vw, 10rem);
    font-weight: bolder;
}

.achievement-caption {
    min-width: 0;
    overflow-wrap: anywhere;
}

.achievement-caption h3 {
    margin: 0.5rem 0;

    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
}

.achievement-caption p {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .achievement-feature {
        flex: none;
        width: 100%;
        position: static;
        min-height: 28rem;
    }

    .achievement-score {
        font-size: clamp(5rem, 18vw, 10rem);
    }
}

/* AWARDS SECTION */

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 2;
}

.achievement-row {
    display: flex;
    position: relative;
  
    gap: 2rem;
    padding: 3rem;

    background-color: #0f1118;
    border-left: 3px solid #ff538e;
}

.award-meta {
    color: var(--text-muted);
}

.award-result {
    flex: 0 0 10rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.award-result {
    font-size: 3rem;
    line-height: 1;

    /* Color */
    background: linear-gradient(80deg, 
    #ff538e, #ffd428);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;

    margin-top: 0.5em;
}

.award-result span {
    display: block;
    font-size: 4.5rem;
    font-weight: 400; 
}

.award-detail h3 {
    margin: 1em 0;
    font-size: 2em;
    line-height: 1.2;
}

.award-detail p {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 1em;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .achievement-list {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 650px) {
    .achievement-row {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .award-result {
        flex-basis: auto;
    }
}

.award-detail {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
}

.achievement-form {
    margin-left: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em; 
}

.edit-achievement, 
.delete-achievement {
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    font-size: 0.8em;
    color: var(--text-muted);
    line-height: 1;

    display: inline-block;
    background: none;
    border: none;
    transition: color 0.2s ease;
}
.edit-achievement:hover, 
.delete-achievement:hover,
.add-achievement:hover{
    color: var(--ink);
}

.add-achievement{
    display: flex;
    align-items: center;
    justify-content: center;
  
    padding: 1rem;

    background-color: #0f1118;
    text-decoration: none;
    color: var(--text-muted);
}

/* Star Form */

.star-form {
    position: absolute;
    top: 1rem;
    right: 1rem;
}


/* Star Button */

.button-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;

    padding: 0.45rem 0.75rem;

    border: none;

    background: transparent;
    color: var(--text-muted);

    cursor: pointer;
    font: inherit;

}


/* Star Icon */

.star-icon {

    font-variation-settings:
        "FILL" 0,
        "wght" 500,
        "GRAD" 0,
        "opsz" 24;

    transition:
        font-variation-settings 0.2s ease,
        transform 0.2s ease;
    color: var(--text-muted);
}


/* Star Count */

.star-count {
    min-width: 1.25rem;

    padding: 0.1rem 0.4rem;

    color: var(--text-muted);

    font-size: 0.8rem;
    font-weight: 600;

    text-align: center;
}


/* Starred State */
.button-star.is-starred .star-icon {
    font-variation-settings:
        "FILL" 1,
        "wght" 500,
        "GRAD" 0,
        "opsz" 24;
}

.button-star:hover .star-icon {
    transform: scale(1.1) translateY(-1px);
    color: var(--ink)
}

.button-star:active {
    transform: translateY(0) scale(0.97);
}


.achievement-search {
    width: 100%;
    display: flex;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.achievement-search__input {
    flex: 1;
    min-width: 0;

    padding: 0.5rem 1.25rem;

    border: 2px solid #0f1118;

    background: #0f1118;
    color: var(--ink);

    font-family: "Inter", sans-serif;
    font-size: 1rem;
}

.achievement-search__input::placeholder {
    color: var(--text-muted);
}

.achievement-search__input:focus {
    outline: none;

    border: 2px solid transparent;

    background:
        linear-gradient(
            rgb(23, 23, 34),
            rgb(23, 23, 34)
        ) padding-box,
        var(--bright-gradient) border-box;
}


.achievement-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-state {
    padding: 2rem;
    background-color: #0f1118;
    color: var(--text-muted);
    text-align: center;
}

button.add-achievement {
    border: none;
    font: inherit;
    cursor: pointer;
}

#add-achievement-modal-title {
    margin: 1rem 3rem 2rem 0;

    font-family: var(--serif);
    font-size: clamp(2.2rem, 1rem + 4vw, 3.4rem);
    font-weight: normal;
    line-height: 0.95;
    letter-spacing: -0.04em;

    color: var(--ink);
}

