/* ===== WALLET: Tokens, Balances ===== */

/* Wallet */
.wallet-container {
    max-width: 800px;
    margin: 0 auto;
}

#wallet-disconnected h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.wallet-options {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.wallet-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    color: var(--text);
}

.wallet-btn:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.wallet-btn span:first-child {
    font-size: 2rem;
}

.wallet-info {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.wallet-header p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.wallet-header strong {
    margin-right: 0.5rem;
}

#wallet-address {
    font-family: monospace;
    font-size: 0.85rem;
}

.btn-secondary {
    background: var(--bg-card-alt);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--border);
    color: var(--text);
}

.token-balances {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.token-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 8px;
    align-items: center;
    border: 2px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
}

.token-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.token-card.selected {
    border-color: var(--gold);
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.token-card.secondary {
    background: var(--bg-card);
}

.token-icon {
    font-size: 2.5rem;
}

.token-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.token-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.token-desc {
    font-size: 0.85rem;
    color: var(--accent);
}

.token-balance {
    font-size: 1.5rem;
    font-weight: bold;
}

.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.btn-action {
    padding: 1rem;
    background: var(--text);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-action:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-copy {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-send-token {
    padding: 0.8rem;
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
}

.balances {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.balance-item {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.balance-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.balance-item strong {
    font-size: 1.5rem;
}


/* ===== Desktop Wallet Card Layout ===== */
@media (min-width: 769px) {
    .wallet-info .token-card {
        flex-direction: row;
        align-items: center;
    }
    .wallet-info .token-card .token-balance {
        margin-left: auto;
        white-space: nowrap;
    }
    /* 지갑 주소 카드: 버튼들 우측 컴팩트 배치 */
    .wallet-info > div:first-child > div:first-child {
        flex-direction: row;
        align-items: center;
    }
    .wallet-info > div:first-child > div:first-child > div:last-child {
        flex-shrink: 0;
        gap: 0.3rem;
    }
    .wallet-info .btn-action {
        max-width: 280px;
    }
}


