﻿/* ────────────────────────────────────────────── */

.hidden {
    display: none !important;
}

body {
    background: #000;
    padding: 50px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 16px;
    box-sizing: border-box;
}

.card {
    background-color: #e0f0ff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: grid;
    grid-template-areas: "header" "scores";
    grid-row-gap: 12px;
}

.card-header {
    grid-area: header;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid #a9a6a6;
}

    .card-header img {
        width: 30px;
        height: 30px;
        object-fit: contain;
    }

    .card-header h3 {
        margin: 0;
        font-size: 0.8rem;
        color: #024a75;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.scores {
    grid-area: scores;
}

    .scores table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;
    }

    .scores th,
    .scores td {
        padding: 4px 6px;
    }

    .scores th {
        text-align: left;
        color: #013a59;
        font-weight: 600;
        width: 20%;
    }

    .scores td {
        text-align: right;
        color: #013a59;
        width: 40%;
    }

        .scores td.rank {
            padding-left: 5px;
            text-align: right;
        }

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ────────────────────────────────────────────── */
/* Profile Header */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 8px;
    margin-top: 0;
    background: #161c23;
    border-radius: 10px;
    padding: 15px 12px 12px 12px;
    min-width: 0;
    min-height: 60px;
    box-shadow: 0 2px 6px rgba(44,51,64,0.10);
}

.avatar-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0;
    flex-shrink: 0;
    border: 2px solid #49b7f6;
    background: #23272c;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}

    .profile-text .display-name {
        margin: 0 0 3px 0;
        font-size: 1.1rem;
        font-weight: bold;
        color: #fff;
        line-height: 1.2;
        word-break: break-all;
    }

    .profile-text .handle {
        margin: 0 0 3px 0;
        color: #8ad6f8;
        font-size: 0.98rem;
        font-weight: 500;
        word-break: break-all;
    }

    .profile-text .bio {
        margin: 0 0 0 0;
        color: #b9bfc8;
        font-size: 0.92rem;
        word-break: break-all;
        max-height: 3.4em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.4;
    }

@media (max-width: 600px) {
    .manual-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .profile-header {
        margin-top: 18px;
        margin-bottom: 12px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .profile-text .display-name,
    .profile-text .handle,
    .profile-text .bio {
        font-size: 0.97rem;
        line-height: 1.25;
    }

    .avatar-wrapper {
        width: 44px;
        height: 44px;
    }
}

.profile-loader {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 6px;
}

/* Spinner/로딩 */
.spinner {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

    .spinner.hidden {
        display: none;
    }

#loading-text {
    color: #f9f9f9;
    padding-left: 14px;
}

    #loading-text.hidden {
        display: none;
    }

.completion {
    display: flex;
    align-items: center;
    margin-left: 14px;
    gap: 8px;
}

    .completion.hidden {
        display: none;
    }

.completion-text {
    font-size: 1rem;
    color: #28a745;
    font-weight: bold;
}

.checkmark {
    width: 32px;
    height: 32px;
    stroke: #28a745;
    stroke-width: 4;
    fill: none;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: draw-circle 0.6s ease-out forwards;
}

.checkmark__check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: draw-check 0.3s 0.6s ease-out forwards;
}

.info-area {
    padding: 5px;
    margin-bottom: 5px;
}

    .info-area span {
        padding: 9px 0px;
        line-height: 17px;
    }

.id-info {
    color: #fff;
    display: block;
}

.rank-expected {
    color: #748aff;
}

.rank-confirmed {
    color: #e600ff;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes draw-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-check {
    to {
        stroke-dashoffset: 0;
    }
}

.manual-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

    .manual-form input[type="text"] {
        height: 36px;
        padding: 0 12px;
        border: 1px solid #bbb;
        border-radius: 6px;
        font-size: 1rem;
    }

    .manual-form button {
        height: 36px;
        padding: 0 20px;
        border-radius: 6px;
        background: #28d1b4;
        border: none;
        color: #fff;
        font-weight: bold;
        cursor: pointer;
        font-size: 1rem;
    }

@media (max-width: 600px) {
    .manual-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .profile-header {
        margin-top: 18px;
        margin-bottom: 12px;
        flex-direction: row;
        justify-content: flex-start;
    }
}

.toast {
    position: fixed;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    background: rgba(40,40,40,0.95);
    color: #fff;
    padding: 22px 36px;
    border-radius: 16px;
    font-size: 1.18rem;
    font-weight: bold;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

    .toast.show {
        opacity: 1;
        pointer-events: all;
    }

/* === TGE 전/완료 및 프로젝트 체크박스 리스트 스타일 === */
.tge-filter-area {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    justify-content: flex-start;
    padding-left: 0;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
}
.tge-btn {
    min-width: 140px;
    max-width: 140px;
    text-align: center;
    background: linear-gradient(90deg, #23243a 0%, #3a2352 100%);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 8px 0;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(80,0,120,0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    outline: none;
    letter-spacing: 0.02em;
}
.tge-btn.active,
.tge-btn:hover {
    background: linear-gradient(90deg, #e600ff 0%, #49b7f6 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(230,0,255,0.13);
}
.project-list-panel {
    margin-bottom: 14px;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    background: rgba(30,30,40,0.98);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(44,0,60,0.08);
    padding: 18px 10px 10px 10px;
}
#projectSearchInput {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 36px 10px 14px;
    border-radius: 22px;
    border: 1.5px solid #e600ff;
    background: #181828;
    color: #fff;
    font-size: 1.05rem;
    box-sizing: border-box;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(80,0,120,0.06);
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23e600ff" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99c.41.41 1.09.41 1.5 0s.41-1.09 0-1.5l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
}
#projectSearchInput:focus {
    border: 1.5px solid #49b7f6;
    box-shadow: 0 2px 12px rgba(73,183,246,0.13);
}
.project-list-panel .action-btns {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}
.project-list-panel .action-btns .tge-btn {
    padding: 5px 18px;
    font-size: 0.98rem;
    border-radius: 16px;
    background: linear-gradient(90deg, #23243a 0%, #3a2352 100%);
    box-shadow: 0 1px 4px rgba(80,0,120,0.06);
}
.project-list-panel .action-btns .tge-btn:hover {
    background: linear-gradient(90deg, #e600ff 0%, #49b7f6 100%);
}
.project-list-panel label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 4px 10px 4px 4px;
    margin: 2px 0;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.project-list-panel label:hover {
    background: rgba(230,0,255,0.12);
}
.project-list-panel img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 6px;
    flex-shrink: 0;
    vertical-align: middle;
}
.project-checkbox {
    accent-color: #e600ff;
}
@media (max-width: 600px) {
    .tge-filter-area {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-width: 100vw;
        justify-content: flex-start;
        align-items: flex-start;
        padding-left: 0;
    }
    .tge-btn {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .project-list-panel {
        max-width: 100vw;
        padding: 10px 2vw 8px 2vw;
    }
    .project-list-panel label {
        width: 100%;
        font-size: 0.98rem;
        gap: 8px;
        padding: 4px 6px 4px 4px;
    }
    .project-list-panel img {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }
    #projectSearchInput {
        font-size: 0.98rem;
        padding: 9px 34px 9px 12px;
    }
}

