/* assets/css/signup-new.css
   Purpose: Avatar grid + username availability styles for simplified signup
   Created: 2026-04-14
   DO NOT add any styles that override signup.css — additive only */

/* ── AVATAR GRID ── */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--bg3);
}
.avatar-grid::-webkit-scrollbar { width: 4px; }
.avatar-grid::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

.avatar-opt {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; border-radius: 10px;
    background: var(--bg3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .1s;
    user-select: none;
    -webkit-user-select: none;
}
.avatar-opt:hover {
    background: rgba(240,180,41,0.08);
    border-color: rgba(240,180,41,0.3);
    transform: scale(1.08);
}
.avatar-opt.selected {
    border-color: var(--gold);
    background: rgba(240,180,41,0.12);
    box-shadow: 0 0 0 3px rgba(240,180,41,0.18);
}

/* ── USERNAME AVAILABILITY ── */
.check-avail {
    font-size: 12px; margin-top: 6px;
    display: flex; align-items: center; gap: 6px;
    min-height: 18px; transition: opacity .2s;
    color: var(--text3);
}
.check-avail.checking { color: var(--text3); }
.check-avail.available { color: var(--green); font-weight: 600; }
.check-avail.taken     { color: var(--red);   font-weight: 600; }

/* ── SECTION LABEL (small uppercase divider) ── */
.form-section-label {
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text3); margin: 20px 0 10px; display: flex; align-items: center; gap: 8px;
}
.form-section-label::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── COUNTRY SELECT ── */
.c-select {
    width: 100%;
    background: var(--bg3);
    color: var(--text);
    border: 1.5px solid var(--border2);
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23606878' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color .2s;
}
.c-select:focus { border-color: var(--gold); }
.c-select option { background: var(--bg3); color: var(--text); }

/* ── SUBMIT BUTTON (matches existing up-btn patterns) ── */
.btn-signup-submit {
    width: 100%;
    background: var(--gold);
    color: #000;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 15px;
    padding: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s, transform .15s, opacity .2s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 8px;
}
.btn-signup-submit:hover:not(:disabled) { background: var(--gold2); transform: translateY(-1px); }
.btn-signup-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── TWO COLUMN ROW ── */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 480px) {
    .form-row-2 { grid-template-columns: 1fr; }
    .avatar-opt { width: 40px; height: 40px; font-size: 19px; }
}
